Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/automation-test-starter/supertest-jest-demo
a SuperTest API automation testing demo project with JEST
https://github.com/automation-test-starter/supertest-jest-demo
api-testing demo jest jest-html-reporters quickstart supertest
Last synced: 14 days ago
JSON representation
a SuperTest API automation testing demo project with JEST
- Host: GitHub
- URL: https://github.com/automation-test-starter/supertest-jest-demo
- Owner: Automation-Test-Starter
- License: apache-2.0
- Created: 2023-11-02T06:35:48.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-10T04:59:37.000Z (about 1 year ago)
- Last Synced: 2024-11-24T14:16:33.878Z (3 months ago)
- Topics: api-testing, demo, jest, jest-html-reporters, quickstart, supertest
- Language: JavaScript
- Homepage:
- Size: 49.8 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SuperTest-Jest-demo
a SuperTest API automation testing demo project with Jest## Environment preparation
- Nodejs, I'm using v21.1.0.
- SuperTest, I'm using version 6.3.3.
- Jest, I'm using the latest version 29.7.0.## Tech stack
- SuperTest
- Jest
- jest-html-reporters
- GitHub action## Project structure
```Text
SuperTest-Jest-demo
βββ README.md
βββ package.json
βββ package-lock.json
βββ Config // TEST configuration file
β βββ config.js
βββ Config // TEST data file
β βββ requestData.js
β βββ responseData.js
βββ Specs // TEST case file
β βββ test.spec.js
βββ Utils // TEST tool file
β βββ utils.js
βββ Report // TEST report file
β βββ report.html
βββ .gitignore
βββ node_modules // Project dependencies
```## HOW TO RUN
```bash
node run test
```
## Test report screenshot![12ZreT](https://cdn.jsdelivr.net/gh/naodeng/blogimg@master/uPic/12ZreT.png)
## Add API test cases
- Just add a new test case in the Specs directory.
## More info
- [Project Tutorial](https://github.com/Automation-Test-Starter/SuperTest-API-Test-Starter)