https://github.com/perfectomobilesa/junit5testwatchersample
This is a Junit 5 Test Watch Sample integrated with Perfecto Reporting
https://github.com/perfectomobilesa/junit5testwatchersample
Last synced: about 1 year ago
JSON representation
This is a Junit 5 Test Watch Sample integrated with Perfecto Reporting
- Host: GitHub
- URL: https://github.com/perfectomobilesa/junit5testwatchersample
- Owner: PerfectoMobileSA
- License: mit
- Created: 2021-01-14T11:40:04.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2025-06-20T17:40:24.000Z (about 1 year ago)
- Last Synced: 2025-06-20T18:38:23.907Z (about 1 year ago)
- Language: Java
- Size: 17.6 KB
- Stars: 0
- Watchers: 7
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
### Sample Junit 5 + Test watcher project

This sample project is designed to get you up and running within few simple steps.
Begin with installing the dependencies below, and continue with the Getting Started procedure below.
### Dependencies
There are several prerequisite dependencies you should install on your machine prior to starting to work with this project:
* [Java 8](http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html)
* An IDE to write your tests on - [Eclipse](http://www.eclipse.org/downloads/packages/eclipse-ide-java-developers/marsr) or [IntelliJ](https://www.jetbrains.com/idea/download/#)
* [Maven](https://maven.apache.org/)
Eclipse users should also install:
1. [Maven Plugin](http://marketplace.eclipse.org/content/m2e-connector-maven-dependency-plugin)
IntelliJ IDEA users should also install:
1. [Maven Plugin for IDEA](https://plugins.jetbrains.com/plugin/1166)
## Downloading the Sample Project
* Clone this repository.
* After downloading and unzipping the project to your computer, open it from your IDE by choosing the folder containing the pom.xml
**********************
## Running sample as is
* Open TestBase.java
* Search for the below line and replace `<>` with your perfecto cloud name (e.g. demo) or pass it as maven properties: `-DcloudName=<>`
String cloudName = `"<>"`;
* Search for the below line and replace `<>` with your perfecto [security token](https://developers.perfectomobile.com/display/PD/Generate+security+tokens) or pass it as maven properties: `-DsecurityToken=<>`
String securityToken = `"<>"`;
Note: Refer to official documentation on how to execute from eclipse / IntelliJ.
* Run pom.xml with the below maven goals & properties when:
a. If credentials are hardcoded:
clean
install
test
b. If credentials are passed as parameters:
clean
install
test
-DcloudName=${cloudName}
-DsecurityToken=${securityToken}
* CI dashboard integration can be performed by supplying the below maven parameters
clean
install
test
-DcloudName=${cloudName}
-DsecurityToken=${securityToken}
-Dreportium-job-name=${JOB_NAME}
-Dreportium-job-number=${BUILD_NUMBER}
-Dreportium-job-branch=${GIT_BRANCH}
-Dreportium-tags=${myTag}