Requirements

Gradle

Run tests:

gradlew clean test -Denv=dev

Run test in a specific environment:

gradlew clean test -Denv=dev
gradlew clean test -Denv=prod

Run tests from powershell commandline:

.\gradlew clean test -Denv=dev

Run test and generate report:

./gradlew clean test
./gradlew allureReport
./gradlew allureServe

Run just one test:

gradle clean test --tests ReqRes2Tests.getSingleUserTest

Maven

Run tests:

mvn clean test -Denv=dev

Run test and generate report:

mvn clean test
mvn allure:report
mvn allure:serve

Generate the report without the plugin:

  1. Download the allure command line: https://repo.maven.apache.org/maven2/io/qameta/allure/allure-commandline/ select the right version.
  2. Configure the Allure in the variable PATH
  3. Run the command allure generate "${result_folder}"

Playlist to follow:

Youtube