Using TodoMVC
We'll build a todo list manager based on the TodoMVC application (http://todomvc.com). This simple, open source application with a rich JavaScript user interface will provide plenty of behavior to specify with BDD. Our implementation will be simpler than the full TodoMVC app, but we'll make sure that our BDD features will work on the full app as well. This will demonstrate how acceptance tests can target both local and deployed instances of an app; in this case, different implementations.
We will first define our feature in a BDD-style RSpec example. Then we'll execute our feature file, which will fail since we won't have any code at that point. We'll then iterate through the development process, building the user interface first, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access