As a developer
I need to ensure the functionality of the app by creating a BDD (Behavior-Driven Development) workflow in the CI pipeline
So that I can confidently make changes and enhancements to the application.
Details and Assumptions
I have written a RESTful API in rest_api.js that needs thorough testing.
BDD is implemented using the Gherkin syntax understood by the Behave tool.
The BDD feature file (test.feature) and accompanying steps file (steps.py) are created to test the RESTful API.
A GitHub Actions workflow file (bdd.yml) is added to the .github/workflows directory for continuous integration.
The CI pipeline is configured to run BDD test cases every time someone pushes to the master branch or submits a Pull Request.
Acceptance Criteria
Given BDD has been integrated into the CI pipeline
When a PR is submitted or a merge to master happens
Then BDD test cases should run
Definition of Done:
The RESTful API (rest_api.js) is implemented.
BDD feature file (test.feature) is created with Gherkin syntax.
Steps file (steps.py) is implemented to define the behavior of each step in the feature file.
A GitHub Actions workflow file (bdd.yml) is created in the .github/workflows directory.
The CI pipeline triggers BDD test cases to run on each push to the master branch or Pull Request submission.
BDD test cases pass successfully in the CI pipeline.
Developers receive timely feedback on the functionality of the app through the CI pipeline.
As a developer I need to ensure the functionality of the app by creating a BDD (Behavior-Driven Development) workflow in the CI pipeline So that I can confidently make changes and enhancements to the application.
Details and Assumptions
rest_api.js
that needs thorough testing.test.feature
) and accompanying steps file (steps.py
) are created to test the RESTful API.bdd.yml
) is added to the.github/workflows
directory for continuous integration.Acceptance Criteria
Definition of Done:
rest_api.js
) is implemented.test.feature
) is created with Gherkin syntax.steps.py
) is implemented to define the behavior of each step in the feature file.bdd.yml
) is created in the.github/workflows
directory.