diff options
author | Marcelo Vanzin <vanzin@cloudera.com> | 2015-09-15 10:45:02 -0700 |
---|---|---|
committer | Marcelo Vanzin <vanzin@cloudera.com> | 2015-09-15 10:45:02 -0700 |
commit | 8abef21dac1a6538c4e4e0140323b83d804d602b (patch) | |
tree | f95a782626def50ae2977ffc9c63057daf1d9afa /pom.xml | |
parent | c35fdcb7e9c01271ce560dba4e0bd37569c8f5d1 (diff) | |
download | spark-8abef21dac1a6538c4e4e0140323b83d804d602b.tar.gz spark-8abef21dac1a6538c4e4e0140323b83d804d602b.tar.bz2 spark-8abef21dac1a6538c4e4e0140323b83d804d602b.zip |
[SPARK-10300] [BUILD] [TESTS] Add support for test tags in run-tests.py.
This change does two things:
- tag a few tests and adds the mechanism in the build to be able to disable those tags,
both in maven and sbt, for both junit and scalatest suites.
- add some logic to run-tests.py to disable some tags depending on what files have
changed; that's used to disable expensive tests when a module hasn't explicitly
been changed, to speed up testing for changes that don't directly affect those
modules.
Author: Marcelo Vanzin <vanzin@cloudera.com>
Closes #8437 from vanzin/test-tags.
Diffstat (limited to 'pom.xml')
-rw-r--r-- | pom.xml | 17 |
1 files changed, 15 insertions, 2 deletions
@@ -181,6 +181,7 @@ <libthrift.version>0.9.2</libthrift.version> <test.java.home>${java.home}</test.java.home> + <test.exclude.tags></test.exclude.tags> <!-- Dependency scopes that can be overridden by enabling certain profiles. These profiles are @@ -339,6 +340,16 @@ <artifactId>scalatest_${scala.binary.version}</artifactId> <scope>test</scope> </dependency> + <dependency> + <groupId>junit</groupId> + <artifactId>junit</artifactId> + <scope>test</scope> + </dependency> + <dependency> + <groupId>com.novocode</groupId> + <artifactId>junit-interface</artifactId> + <scope>test</scope> + </dependency> </dependencies> <dependencyManagement> <dependencies> @@ -742,7 +753,7 @@ <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> - <version>4.10</version> + <version>4.11</version> <scope>test</scope> </dependency> <dependency> @@ -760,7 +771,7 @@ <dependency> <groupId>com.novocode</groupId> <artifactId>junit-interface</artifactId> - <version>0.10</version> + <version>0.11</version> <scope>test</scope> </dependency> <dependency> @@ -1915,6 +1926,7 @@ <test.src.tables>src</test.src.tables> </systemProperties> <failIfNoTests>false</failIfNoTests> + <excludedGroups>${test.exclude.tags}</excludedGroups> </configuration> </plugin> <!-- Scalatest runs all Scala tests --> @@ -1952,6 +1964,7 @@ <!-- Needed by sql/hive tests. --> <test.src.tables>__not_used__</test.src.tables> </systemProperties> + <tagsToExclude>${test.exclude.tags}</tagsToExclude> </configuration> <executions> <execution> |