forked from apache/spark
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Made unit tests optional in a nice way
- Loading branch information
Showing
3 changed files
with
70 additions
and
49 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
extras/kinesis-asl/src/test/scala/org/apache/spark/streaming/kinesis/KinesisFunSuite.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package org.apache.spark.streaming.kinesis | ||
|
||
import org.scalatest.BeforeAndAfterAll | ||
|
||
import org.apache.spark.SparkFunSuite | ||
|
||
abstract class KinesisFunSuite extends SparkFunSuite with BeforeAndAfterAll { | ||
import KinesisTestUtils._ | ||
|
||
def testOrIgnore(testName: String)(testBody: => Unit) { | ||
if (shouldRunTests) { | ||
test(testName)(testBody) | ||
} else { | ||
ignore(s"$testName [enable by setting env var $envVarName=1]")(testBody) | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters