We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It seems like testing with JobTest only works if the context in the tested class is created using ContextAndArgs (testId properly set in https://github.com/spotify/scio/blob/master/scio-core/src/main/scala/com/spotify/scio/ScioContext.scala#L59-L65)
JobTest
ContextAndArgs
testId
If it's using any of the ScioContext.apply() initializers testId will always be None and the tests won't work (testId always None in https://github.com/spotify/scio/blob/master/scio-core/src/main/scala/com/spotify/scio/ScioContext.scala#L73-L83)
ScioContext.apply()
Is this by design or would you accept a PR to fix it?
The text was updated successfully, but these errors were encountered:
It's a case we haven't thought about yet. What do you propose? Adding an optional testId arg to every apply() method?
apply()
Sorry, something went wrong.
@nollbit any thoughts?
remove testId from ScioContext #114
a5b9c67
2fa8a3c
64e57f3
Fixed in #174
nevillelyh
No branches or pull requests
It seems like testing with
JobTest
only works if the context in the tested class is created usingContextAndArgs
(testId
properly set in https://github.com/spotify/scio/blob/master/scio-core/src/main/scala/com/spotify/scio/ScioContext.scala#L59-L65)If it's using any of the
ScioContext.apply()
initializers testId will always be None and the tests won't work (testId
always None in https://github.com/spotify/scio/blob/master/scio-core/src/main/scala/com/spotify/scio/ScioContext.scala#L73-L83)Is this by design or would you accept a PR to fix it?
The text was updated successfully, but these errors were encountered: