aboutsummaryrefslogtreecommitdiff
path: root/R/pkg/tests/run-all.R
diff options
context:
space:
mode:
authorSun Rui <rui.sun@intel.com>2015-12-07 10:38:17 -0800
committerShivaram Venkataraman <shivaram@cs.berkeley.edu>2015-12-07 10:38:17 -0800
commit39d677c8f1ee7ebd7e142bec0415cf8f90ac84b6 (patch)
treea4e8d1cb04e4956d0157819402d88977ab248d89 /R/pkg/tests/run-all.R
parent9cde7d5fa87e7ddfff0b9c1212920a1d9000539b (diff)
downloadspark-39d677c8f1ee7ebd7e142bec0415cf8f90ac84b6.tar.gz
spark-39d677c8f1ee7ebd7e142bec0415cf8f90ac84b6.tar.bz2
spark-39d677c8f1ee7ebd7e142bec0415cf8f90ac84b6.zip
[SPARK-12034][SPARKR] Eliminate warnings in SparkR test cases.
This PR: 1. Suppress all known warnings. 2. Cleanup test cases and fix some errors in test cases. 3. Fix errors in HiveContext related test cases. These test cases are actually not run previously due to a bug of creating TestHiveContext. 4. Support 'testthat' package version 0.11.0 which prefers that test cases be under 'tests/testthat' 5. Make sure the default Hadoop file system is local when running test cases. 6. Turn on warnings into errors. Author: Sun Rui <rui.sun@intel.com> Closes #10030 from sun-rui/SPARK-12034.
Diffstat (limited to 'R/pkg/tests/run-all.R')
-rw-r--r--R/pkg/tests/run-all.R3
1 files changed, 3 insertions, 0 deletions
diff --git a/R/pkg/tests/run-all.R b/R/pkg/tests/run-all.R
index 4f8a1ed2d8..1d04656ac2 100644
--- a/R/pkg/tests/run-all.R
+++ b/R/pkg/tests/run-all.R
@@ -18,4 +18,7 @@
library(testthat)
library(SparkR)
+# Turn all warnings into errors
+options("warn" = 2)
+
test_package("SparkR")