This project shows how to test an API as library using WebClient with Junit Jupiter
gradle test
mvn test
gradle test --tests ${testName}
mvn test -Dtest=${testName}
where:
${testName}
is the test name you want to execute
export ARTIFACTORY_USER=${username}
export ARTIFACTORY_PASSWORD=${password}
gradle publish
where:
${username}
Is artifactory username${password}
Is artifactory password
gradle jacocoTestReport sonarqube test
mvn deploy
Make sure you setup your artifactory credentials in ${USER_HOME}/.m2/settings.xml
<settings>
<servers>
<server>
<id>artifactory</id>
<username>username</username>
<password>password</password>
</server>
</servers>
</settings>
Note: If you want to learn more and publish your own library, feel free to drop me a message on my home page website and ask for a Jfrog credentials.
Visit our wiki page: Wiki page