Implementing Testing for Behavior-Driven Development Using Cucumber
With the behavior-driven development (BDD) methodology, development teams write high level, plain natural language tests to describe and exercise a system. Unfortunately, it is difficult to develop BDD tests that encompass all interfaces and write tests that can be reused in multiple scenarios. Specifying BDD tests to run as part of different test scenarios without duplicating work frequently requires substantial effort and rework. But Cucumber provides a robust framework for writing BDD tests. Max Saperstone shows how—by using Cucumber’s flexible structure in combination with the Java language—to write singular tests to run over multiple testing interfaces. Building on Cucumber basics, this framework provides a generic model for testing any application. Additionally, Max shares some valuable suggestions to build on standard Cucumber reports, gives additional information for debugging and traceability, and describes test runners and their inputs to help you create more dynamic testing scenarios.