The repository contains adaptors for JVM-based test frameworks.
- Define dependencies according to the selected test framework (see below).
- Add aqualityTracking.json file with corresponding values to
src/test/resources
.
You are able to override these values from CI build using Maven properties:
mvn clean test -Daquality.enabled={true/false}
-Daquality.host={aquality_tracking_address}
-Daquality.token={api_token}
-Daquality.projectId={project_id}
-Daquality.executor={name_of_executor}
-Daquality.suiteName={test_suite_name}
-Daquality.buildName={build_name}
-Daquality.environment={execution_env}
-Daquality.ciBuild={link_to_ci_build}
-Daquality.debug={true/false}
-Daquality.attachmentsDirectory={path_to_directory_with_attachments}
To use this adaptor with Cucumber 5 you have to add the following dependency:
<dependency>
<groupId>com.github.aquality-automation</groupId>
<artifactId>aquality-tracking-cucumber5-jvm</artifactId>
<version>$LATEST_VERSION</version>
</dependency>
Also you have to add plugin aquality.tracking.integrations.cucumber5jvm.AqualityTrackingCucumber5Jvm
to the Cucumber Test Runner.
To use this adaptor with Cucumber 4 you have to add the following dependency:
<dependency>
<groupId>com.github.aquality-automation</groupId>
<artifactId>aquality-tracking-cucumber4-jvm</artifactId>
<version>$LATEST_VERSION</version>
</dependency>
Also you have to add plugin aquality.tracking.integrations.cucumber4jvm.AqualityTrackingCucumber4Jvm
to the Cucumber Test Runner.
mvn versions:set -DnewVersion={new_version}