| commit | dd707721590b20443cb5aa2395cc736919d18b42 | [log] [tgz] |
|---|---|---|
| author | Pabst, Andreas <andreas.pabst@zeiss.com> | Thu Dec 29 18:27:56 2022 +0100 |
| committer | Slawomir Jaranowski <s.jaranowski@gmail.com> | Tue Jan 03 16:57:37 2023 +0100 |
| tree | 9c91115726a9f70856e376c0dd1e052c22dd5f6d | |
| parent | 6420f7c34e74eafbc0097c70ef860f399a89f4fa [diff] |
[SUREFIRE-2138] Update JUnit4/JUnit5 versions in docs Update JUnit versions referenced in configuration examples to 4.13.2 and 5.9.1, the respective latest versions
Usage of maven-surefire-plugin, maven-failsafe-plugin, maven-surefire-report-plugin
Build the Surefire project using Maven 3.2.5+ and JDK 1.8+.
In order to run tests for a release check during the Vote, the following memory requirements are needed:
On Linux/Unix:
export MAVEN_OPTS="-server -Xmx512m -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=384m -XX:+UseG1GC -XX:+UseStringDeduplication -XX:+TieredCompilation -XX:TieredStopAtLevel=1 -XX:SoftRefLRUPolicyMSPerMB=50 -Djava.awt.headless=true"
On Windows:
set MAVEN_OPTS="-server -Xmx256m -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=384m -XX:+UseG1GC -XX:+UseStringDeduplication -XX:+TieredCompilation -XX:TieredStopAtLevel=1 -XX:SoftRefLRUPolicyMSPerMB=50 -Djava.awt.headless=true"
In order to build and run the tests:
mvn install site site:stage -P reporting,run-its
To set up the project in Eclipse IDE or IntelliJ IDEA, please follow these steps:
Build module surefire-shared-utils with profile ide-development and install it into the local maven repository using this Maven command:
mvn install -P ide-development -f surefire-shared-utils/pom.xml
Build module surefire-grouper in order to generate and compile sources into target/generated-sources/javacc using this Maven command:
mvn compile -f surefire-grouper/pom.xml
In Eclipse, select File > Import ... > Maven Project
surefire-shared-utils, enter profile ide-development in Advanced -> Profilessurefire-grouper has source folder target/generated-sources/javacc. If not, add it manually in the module's project propertiesIn IntelliJ, select Maven > Profiles and check ide-development
See http://maven.apache.org/developers/website/deploy-component-reference-documentation.html