This project is an automated test suite for the BBC API using Cucumber(Gherkin), TypeScript, and Supertest. It's a take home assignment completed by Catherine Siviter.
Ensure you have the following installed on your machine:
- Clone the repository or download the project files.
- Navigate to the project directory.
- Run the following command to install all dependencies:
npm install
To execute the end-to-end tests and generate a report in JSON format:
npm run test
This command will:
- Run all
.featurefiles located in thefeatures/directory. - Output the test results in a file called
cucumber_report.json.
Once the tests are complete, you can generate a readable HTML report. Use the following command:
npm run generate:report
This command will:
- Take the
cucumber_report.jsonfile and generate an HTML report. - The report will be created in the
./reportsfolder.
If you want to customize the report's appearance or output location, you can modify report.js according to your needs.
- Run tests and generate the JSON report:
npm run test
- Generate the HTML report from the JSON output:
npm run generate:report
Manual test cases can be found in Gherkin syntax under the 'manual' folder.