12.3 Deliverables
This project has the following deliverables:
Documentation in the
docs
folderAcceptance tests in the
tests/features
andtests/steps
foldersUnit tests for the application modules in the
tests
folderAn application for the RESTful API processing
We’ll start by looking at the acceptance test cases, first. They’ll be rather complex because we need to start the RESTful API service before we can access it with a client request.
12.3.1 Acceptance test cases
Back in Chapter 4, Data Acquisition Features: Web APIs and Scraping, specifically Acceptance tests using a SQLite database, we looked at ways to describe a scenario that involved a database service.
For this project, we’ll need to write scenarios that will lead to step definitions that start the RESTful API service.
There’s an important question about setting the state of the RESTful API server. One approach to setting a state is by making a sequence of requests as part of the scenario...