t

com.holdenkarau.spark.testing

PerTestSparkContext

trait PerTestSparkContext extends LocalSparkContext with BeforeAndAfterEach with SparkContextProvider

Provides a local sc SparkContext variable, correctly stopping it after each test. The stopping logic is provided in LocalSparkContext.

Self Type
PerTestSparkContext with Suite
Linear Supertypes
SparkContextProvider, LocalSparkContext, BeforeAndAfterAll, BeforeAndAfterEach, SuiteMixin, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. PerTestSparkContext
  2. SparkContextProvider
  3. LocalSparkContext
  4. BeforeAndAfterAll
  5. BeforeAndAfterEach
  6. SuiteMixin
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def expectedTestCount(filter: Filter): Int
    Definition Classes
    SuiteMixin
  2. abstract def nestedSuites: IndexedSeq[Suite]
    Definition Classes
    SuiteMixin
  3. abstract def rerunner: Option[String]
    Definition Classes
    SuiteMixin
  4. abstract def runNestedSuites(args: Args): Status
    Attributes
    protected
    Definition Classes
    SuiteMixin
  5. abstract def runTests(testName: Option[String], args: Args): Status
    Attributes
    protected
    Definition Classes
    SuiteMixin
  6. abstract def suiteId: String
    Definition Classes
    SuiteMixin
  7. abstract def suiteName: String
    Definition Classes
    SuiteMixin
  8. abstract def tags: Map[String, Set[String]]
    Definition Classes
    SuiteMixin
  9. abstract def testDataFor(testName: String, theConfigMap: ConfigMap): TestData
    Definition Classes
    SuiteMixin
  10. abstract def testNames: Set[String]
    Definition Classes
    SuiteMixin
  11. abstract val styleName: String
    Definition Classes
    SuiteMixin
    Annotations
    @deprecated
    Deprecated

    (Since version 3.1.0) The styleName lifecycle method has been deprecated and will be removed in a future version of ScalaTest with no replacement.

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def afterAll(): Unit
    Attributes
    protected
    Definition Classes
    BeforeAndAfterAll
  5. def afterEach(): Unit
    Definition Classes
    PerTestSparkContextLocalSparkContext → BeforeAndAfterEach
  6. def appID: String
    Definition Classes
    SparkContextProvider
  7. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  8. def beforeAll(): Unit
    Definition Classes
    PerTestSparkContext → BeforeAndAfterAll
  9. def beforeEach(): Unit
    Definition Classes
    PerTestSparkContext → BeforeAndAfterEach
  10. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native() @HotSpotIntrinsicCandidate()
  11. def conf: SparkConf
    Definition Classes
    SparkContextProvider
  12. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  14. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  15. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  16. val invokeBeforeAllAndAfterAllEvenIfNoTestsAreExpected: Boolean
    Definition Classes
    BeforeAndAfterAll
  17. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  18. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  20. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  21. def resetSparkContext(): Unit
    Definition Classes
    LocalSparkContext
  22. def run(testName: Option[String], args: Args): Status
    Definition Classes
    BeforeAndAfterAll → SuiteMixin
  23. def runTest(testName: String, args: Args): Status
    Attributes
    protected
    Definition Classes
    BeforeAndAfterEach → SuiteMixin
  24. val sc: SparkContext
    Definition Classes
    LocalSparkContext
    Annotations
    @transient()
  25. def setup(sc: SparkContext): Unit

    Setup work to be called when creating a new SparkContext.

    Setup work to be called when creating a new SparkContext. Default implementation currently sets a checkpoint directory.

    This _should_ be called by the context provider automatically.

    Definition Classes
    SparkContextProvider
  26. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  27. def toString(): String
    Definition Classes
    AnyRef → Any
  28. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  30. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] ) @Deprecated
    Deprecated

Inherited from SparkContextProvider

Inherited from LocalSparkContext

Inherited from BeforeAndAfterAll

Inherited from BeforeAndAfterEach

Inherited from SuiteMixin

Inherited from AnyRef

Inherited from Any

Ungrouped