Skip to content

Latest commit

 

History

History
43 lines (24 loc) · 835 Bytes

README.md

File metadata and controls

43 lines (24 loc) · 835 Bytes

api-cucumberjs-example

pipeline status

This project is contain API testing using CucumberJS


Tools:

  • CucumberJS for test framework
  • Chai for test assertion
  • Supertest for HTTP request module

How to setup:

  • Clone this repository

  • Install the dependencies (Need NodeJS & NPM)

    • npm install
  • Rename the file env.example to .env


How to run:

  • For all tests

    • npm run test
  • For specific feature using tags

    • npm run test -- --tags "@post"

Report:

  • The file report will be generated in HTML and saved to reports directory
  • Allure report also will generated, open it using this command npm run report