To install the repository and its dependencies using npm, follow these steps:
npm ci- To run the tests locally, you need to set up an
.env.localfile with theBASE_URLandTOKENparameters. Refer to.envfor an example.- Running Tests Locally:
npm run test - Running Tests and Generating Reports:
npm run test-report- o view the report locally, navigate to the repository folder, locate the
mochawesome-reportdirectory, and open the .html file.
- o view the report locally, navigate to the repository folder, locate the
- Running Tests Locally:
Automated testing is set up using GitHub Actions for continuous integration:
- Navigate to the Actions tab in your GitHub repository.
- Select the workflow named RUN SuperTest API Test CI.
- Click the Run workflow button on the right.
- Wait for the workflow to complete.
- To view the generated report: Go to the finished job. Scroll down and access the attached report.
