4. Behavior-Driven Development
• TDD done right
• Business Readable, can be read almost like a sentence
• Improves communication, monitoring and transparency
*https://pragprog.com/book/hwcuc/the-cucumber-book
7. Calabash in Action
Start
calabash-android gen
Basic
calabash-android run <apkfile>.apk
Verbose
calabash-android run <apkfile>.apk -v
Generate HTML Reports
calabash-android run <apkfile>.apk --format html --out
reports.html
TDD – test driven development
BDD – behavior driven development
If we were to unpack the definition of TDD a bit more, we’d see that it is usually broken up into five different stages:
First the developer writes some tests.
The developer then runs those tests and (obviously) they fail because none of those features are actually implemented.
Next the developer actually implements those tests in code.
If the developer writes his code well, then the in next stage he will see his tests pass.
The developer can then refactor his code, add comments, clean it up, as he wishes because the developer knows that if the new code breaks something, then the tests will alert him by failing.
If we were to unpack the definition of TDD a bit more, we’d see that it is usually broken up into five different stages:
First the developer writes some tests.
The developer then runs those tests and (obviously) they fail because none of those features are actually implemented.
Next the developer actually implements those tests in code.
If the developer writes his code well, then the in next stage he will see his tests pass.
The developer can then refactor his code, add comments, clean it up, as he wishes because the developer knows that if the new code breaks something, then the tests will alert him by failing.