ducksblock / juice-automation

API validation using juice-webclient and Junit5

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Juice Automation

Build Status Quality Gate Status

This project shows how to test an API using Junit Jupiter and a third-party library juice-webclient

To test the project with Gradle

gradle test

To run a single test with Gradle

gradle test --tests ${testName}

where:

  • ${testName} is the test name you want to execute

To test the project with Maven

mvn test

To run a single test with Maven

mvn test -Dtest ${testName}

To download third-party library from artifactory

export ARTIFACTORY_USER=${username}
export ARTIFACTORY_PASSWORD=${password}

where:

  • ${username} Is artifactory username
  • ${password} Is artifactory password

Note: If you want to have the Jfrog library, feel free to drop me a message on my home page website and ask for a Jfrog credentials.

To run tests with Jacoco and Sonarqube

gradle jacocoTestReport sonarqube test

Note: This project requires juice-webclient as a dependency

For more information:

Visit our wiki page: Wiki page

Read this as reference:

About

API validation using juice-webclient and Junit5


Languages

Language:Java 100.0%