Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ugioni/integration-tests-jest

API testing with a simple integration between JestJS and PactumJS.
https://github.com/ugioni/integration-tests-jest

api-tests jest pactumjs typescript

Last synced: about 1 month ago
JSON representation

API testing with a simple integration between JestJS and PactumJS.

Awesome Lists containing this project

README

        

# API test automation with Jest and PactumJS

> Simple integration between JestJS and PactumJS.

## GitHub Actions

[![Node.js CI](https://github.com/ugioni/integration-tests-jest/actions/workflows/node.js.yml/badge.svg?branch=master)](https://github.com/ugioni/integration-tests-jest/actions/workflows/node.js.yml)

## SonarCloud

[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=ugioni_integration-tests-jest&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=ugioni_integration-tests-jest)

# Getting Started

### Pactum docs:
- [PactumJS](https://pactumjs.github.io/)

### Prerequisites:
- NodeJS `v20`

### How to run?

Inside of the project folder run:

1. `npm install --save-dev`
1. `npm run ci`

After that you should see a `./output` folder with some `HTML` reports.

### Docs to Api under tests:
- [API Company / Mercado](https://api-desafio-qa.onrender.com/docs/)
- [Deck of Cards](https://deckofcardsapi.com/)
- [JSON placeholder](https://jsonplaceholder.typicode.com/)
- [http bin](http://httpbin.org/)
- [rick and morty api](https://rickandmortyapi.com/documentation/#rest)
- [Petstore](https://petstore.swagger.io/#/)
- [ServeRest](https://serverest.dev/#/)
- [ServeRest - Datadog](https://p.datadoghq.eu/sb/421fcfee-35ec-11ee-b87f-da7ad0900005-2aaf85264a89d11b7001bcab452a266e?refresh_mode=sliding&theme=light&tpl_var_env%5B0%5D=serverest.dev&from_ts=1699931511294&to_ts=1699932411294&live=true)