Giter Site home page Giter Site logo

automation-test-starter / supertest-jest-demo Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 1.0 51 KB

a SuperTest API automation testing demo project with JEST

License: Apache License 2.0

JavaScript 100.00%
api-testing demo jest jest-html-reporters quickstart supertest

supertest-jest-demo's Introduction

πŸ‡¨πŸ‡³δΈ­ζ–‡ | πŸ‡¬πŸ‡§English

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

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

node run test

Test report screenshot

12ZreT

Add API test cases

  • Just add a new test case in the Specs directory.

More info

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.