Skip to content

zecarrera/restassured-java

Repository files navigation

restassured-java

Summary

This repo contains an example API testing framework using Java and the following tools:

  • RestAssured - API test library
  • JUnit5 - Test runner
  • Gradle - Build tool
  • GitHub actions - CI tool

Running tests

Locally

Environment variable ENVIRONMENT should be set.

  • local: when running using MERN-ecommerce app running locally.
  • development: when running using MERN-ecommerce app deployed in dev.

Running from the terminal:

./gradlew build to build project
./gradlew test to run tests

Pipeline

Tests are automatically triggered using GitHub actions when:

  • PR is raised/updated
  • Once a day at 12:00PM

Workflow also allows for manually triggering.

Test report is uploaded as an artifact, once tests finish.

Application under test

Tests are written against the MERN-ecommerce

About

PDT API test framework using RestAssured and Java

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages