Package

com.spotify.scio

testing

Permalink

package testing

Visibility
  1. Public
  2. All

Type Members

  1. trait PipelineSpec extends FlatSpec with Matchers with SCollectionMatchers with PipelineTestUtils

    Permalink

    Trait for unit testing pipelines.

    Trait for unit testing pipelines.

    A simple test might look like this:

    class SimplePipelineTest extends PipelineSpec {
      "A simple pipeline" should "sum integers" in {
        runWithContext { sc =>
          sc.parallelize(Seq(1, 2, 3)).sum should containSingleValue (6)
        }
      }
    }
  2. trait PipelineTestUtils extends AnyRef

    Permalink

    Trait with utility methods for unit testing pipelines.

  3. trait SCollectionMatchers extends AnyRef

    Permalink

    Trait with ScalaTest Matchers for SCollections.

Ungrouped