Description
A lot of people working on Hadoop don't want to run all the tests when they develop; only the bits they're working on. Surefire 2.19 introduced more useful test filters which let us run a subset of the tests that brings the build time down from 'come back tomorrow' to 'grab a coffee'.
For instance, if I only care about the S3 adaptor, I might run:
mvn test -Dmaven.javadoc.skip=true -Pdist,native -Djava.awt.headless=true \"-Dtest=org.apache.hadoop.fs.*, org.apache.hadoop.hdfs.*, org.apache.hadoop.fs.s3a.*\"
We can work around this by specifying the surefire version on the command line but it would be better, imo, to just update the default surefire used.
mvn test -Dmaven.javadoc.skip=true -Pdist,native -Djava.awt.headless=true \"-Dtest=org.apache.hadoop.fs.*, org.apache.hadoop.hdfs.*, org.apache.hadoop.fs.s3a.*\" -Dmaven-surefire-plugin.version=2.19.1
Attachments
Attachments
Issue Links
- blocks
-
HADOOP-14775 Change junit dependency in parent pom file to junit 5 while maintaining backward compatibility to junit4.
- Resolved
- breaks
-
HADOOP-15711 Move branch-2 precommit/nightly test builds to java 8
- Resolved
- is related to
-
HADOOP-15251 Backport HADOOP-13514 (surefire upgrade) to branch-2
- Resolved
- relates to
-
SUREFIRE-1226 Surefire trims all stack trace elements except those in the test that failed
- Closed
-
HDFS-12711 deadly hdfs test
- Resolved