Skip to content

Latest commit

 

History

History
75 lines (49 loc) · 2.3 KB

README.md

File metadata and controls

75 lines (49 loc) · 2.3 KB

Automated API tests

This repository contains automated API tests for the provided task.

Pre-requisites

  • Node.js 16+

Running tests locally

Clone this repository

git clone [email protected]:ekeminiudoh/API-TEST--PLAYWRIGHT.git

navigate to the project directory

cd API-TEST--PLAYWRIGHT

Install dependencies

npm install

Run test

To run the tests, run the following command. This command will run the tests, generate a report and open it on the browser.

npx playwright test

Generate report

I used the default playwright reporting to generate a report after running the tests. To generate the report, run the following command after running the tests.

npx playwright show-report

The report will be saved in the /playwright-report directory.

Running tests in Github CI/CD

The CI/CD pipeline is configured in the .github/workflows/playwright.yml file to run the automated test on GitHub using the playwright Docker container runner.

To run the tests in GitHub CI/CD, push the code to the repository and the pipeline will be triggered automatically.

Authors

👤 Name Github GitLab LinkedIn
Ekemini Udoh @ekeminiudoh @ekeminiudoh @EkeminiUdoh

🤝 Contributing

Contributions, issues, and feature requests are welcome!

Feel free to check the issues page.

Show your support

Give a ⭐️ if you like this project!

Acknowledgments