@LinkingNote in YATSPEC
Wojciech Bulaty
13 Oct 2015
Me (Wojtek)
9 years of software development
5+ years of TDD, pair programming, etc.
Yatspec
● Don't know how YATSPEC works?
– http://test-driven-development.com/2011/10/example-rev
Warmup!
https://www.mentimeter.com/
Problem
● Acceptance tests
– Find
– Understand
– Modify/Add/Delete
● A lot of time for complex domains
– 60-95% tests
– 5-40% production code
●
How can we save time?
Better tests
● Easier to find
● Easier to understand
● Easier to maintain
● Save time! :)
● Not easy! :(
● Best practices
One more tool in the toolbox
SAVE TIME! :)
● This is NOT going to solve all problems
● @LinkingNote
– Link to other test classes
– Remove duplication (less acceptance more unit)
– Easier to find tests
– SRP/DRY
Example
● Let's code!
Summary
● Use @LinkingNote
– remove duplication, find tests easier, ...
– save time
● Available in Yatspec 1.13
Credits & Thanks
● The team!
Feedback!
Questions?
http://test-driven-development.com/

@LinkingNote annotation in YATSPEC

Editor's Notes

  • #2 Use LinkingNote to remove duplication and find test easier!