diff options
author | Sean Owen <sowen@cloudera.com> | 2015-01-06 12:02:08 -0800 |
---|---|---|
committer | Josh Rosen <joshrosen@databricks.com> | 2015-01-06 12:02:08 -0800 |
commit | 4cba6eb42031b1a4cc3308833116ca5d9ccb1a89 (patch) | |
tree | 0d0a6e192ce742543f6c1ef05c61360930653a01 /mllib/src/test/resources | |
parent | 5e3ec1110495899a298313c4aa9c6c151c1f54da (diff) | |
download | spark-4cba6eb42031b1a4cc3308833116ca5d9ccb1a89.tar.gz spark-4cba6eb42031b1a4cc3308833116ca5d9ccb1a89.tar.bz2 spark-4cba6eb42031b1a4cc3308833116ca5d9ccb1a89.zip |
SPARK-4159 [CORE] Maven build doesn't run JUnit test suites
This PR:
- Reenables `surefire`, and copies config from `scalatest` (which is itself an old fork of `surefire`, so similar)
- Tells `surefire` to test only Java tests
- Enables `surefire` and `scalatest` for all children, and in turn eliminates some duplication.
For me this causes the Scala and Java tests to be run once each, it seems, as desired. It doesn't affect the SBT build but works for Maven. I still need to verify that all of the Scala tests and Java tests are being run.
Author: Sean Owen <sowen@cloudera.com>
Closes #3651 from srowen/SPARK-4159 and squashes the following commits:
2e8a0af [Sean Owen] Remove specialized SPARK_HOME setting for REPL, YARN tests as it appears to be obsolete
12e4558 [Sean Owen] Append to unit-test.log instead of overwriting, so that both surefire and scalatest output is preserved. Also standardize/correct comments a bit.
e6f8601 [Sean Owen] Reenable Java tests by reenabling surefire with config cloned from scalatest; centralize test config in the parent
Diffstat (limited to 'mllib/src/test/resources')
-rw-r--r-- | mllib/src/test/resources/log4j.properties | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mllib/src/test/resources/log4j.properties b/mllib/src/test/resources/log4j.properties index a469badf60..9697237bfa 100644 --- a/mllib/src/test/resources/log4j.properties +++ b/mllib/src/test/resources/log4j.properties @@ -15,10 +15,10 @@ # limitations under the License. # -# Set everything to be logged to the file core/target/unit-tests.log +# Set everything to be logged to the file target/unit-tests.log log4j.rootCategory=INFO, file log4j.appender.file=org.apache.log4j.FileAppender -log4j.appender.file.append=false +log4j.appender.file.append=true log4j.appender.file.file=target/unit-tests.log log4j.appender.file.layout=org.apache.log4j.PatternLayout log4j.appender.file.layout.ConversionPattern=%d{yy/MM/dd HH:mm:ss.SSS} %t %p %c{1}: %m%n |