Test pipeline components with a ScioContext.
Test pipeline components with a ScioContext.
code that tests the components and verifies the result
runWithContext { sc => sc.parallelize(Seq(1, 2, 3)).sum should containSingleValue (6) }
Test pipeline components with in-memory data.
Test pipeline components with in-memory data.
Input data is passed to fn
as SCollections and the result SCollection from fn
is
extracted and to be verified.
input data
input data
input data
input data
transform to be tested
output data
Test pipeline components with in-memory data.
Test pipeline components with in-memory data.
Input data is passed to fn
as SCollections and the result SCollection from fn
is
extracted and to be verified.
input data
input data
input data
transform to be tested
output data
Test pipeline components with in-memory data.
Test pipeline components with in-memory data.
Input data is passed to fn
as SCollections and the result SCollection from fn
is
extracted and to be verified.
input data
input data
transform to be tested
output data
Test pipeline components with in-memory data.
Test pipeline components with in-memory data.
Input data is passed to fn
as an SCollection and the result SCollection from fn
is extracted and to be verified.
input data
transform to be tested
output data
runWithData(Seq(1, 2, 3)) { p => p.sum } should equal (Seq(6))
This method has been deprecated in favor of macro assertion and will be removed in a future version of ScalaTest. If you need this, please copy the source code into your own trait instead.
This method has been deprecated in favor of macro assertion and will be removed in a future version of ScalaTest. If you need this, please copy the source code into your own trait instead.
This method has been deprecated in favor of macro assumption and will be removed in a future version of ScalaTest. If you need this, please copy the source code into your own trait instead.
This method has been deprecated in favor of macro assumption and will be removed in a future version of ScalaTest. If you need this, please copy the source code into your own trait instead.
Please use 'an [Exception] should be thrownBy { ... }' syntax instead
This expect method has been deprecated. Please replace all invocations of expect with an identical invocation of assertResult instead.
This expect method has been deprecated. Please replace all invocations of expect with an identical invocation of assertResult instead.
This expectResult method has been deprecated. Please replace all invocations of expectResult with an identical invocation of assertResult instead.
This expectResult method has been deprecated. Please replace all invocations of expectResult with an identical invocation of assertResult instead.
Trait for unit testing pipelines.
A simple test might look like this: