You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 29, 2024. It is now read-only.
We are attempting to use sbt-docker-compose to simply start a docker-image, run our tests against the started image and then shutting down the docker image.
So far the tests seem to be working, however we appear to be getting an issue where the specs2 integration is only running one of the tests rather than all of them. I suspect the issue is with specs2 tests that use ee: ExecutionEnv as this is the only differentiating factor.
The current work in progress can be seen here zalando-nakadi/kanadi#33 (to reproduce you can just check out the setupDockerComposeAutomatically branch and run dockerComposeTest in sbt).
Doing so, you will see that it only runs JsonSpec, i.e.
[info] Done packaging.
[info] JsonSpec
[info] + Parse business events
[info] + Parse data events
[info] + Parse undefined events
[info]
[info] Total for specification JsonSpec
[info] Finished in 543 ms
3 examples, 0 failure, 0 error
[info]
Stopping and removing local Docker instance: 445734
The only differentiate thing about JSON spec (versus the other specs) is that it is defined as class JsonSpec extends Specification, i.e. https://github.com/zalando-incubator/kanadi/blob/master/src/test/scala/JsonSpec.scala#L15 where as the other specs2 tests are defined as class BasicSourceSpec(implicit ec: ExecutionEnv) extends Specification with FutureMatchers with Config (as an example)
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
We are attempting to use sbt-docker-compose to simply start a docker-image, run our tests against the started image and then shutting down the docker image.
So far the tests seem to be working, however we appear to be getting an issue where the specs2 integration is only running one of the tests rather than all of them. I suspect the issue is with specs2 tests that use
ee: ExecutionEnv
as this is the only differentiating factor.The current work in progress can be seen here zalando-nakadi/kanadi#33 (to reproduce you can just check out the
setupDockerComposeAutomatically
branch and rundockerComposeTest
in sbt).Doing so, you will see that it only runs
JsonSpec
, i.e.The only differentiate thing about JSON spec (versus the other specs) is that it is defined as
class JsonSpec extends Specification
, i.e. https://github.com/zalando-incubator/kanadi/blob/master/src/test/scala/JsonSpec.scala#L15 where as the other specs2 tests are defined asclass BasicSourceSpec(implicit ec: ExecutionEnv) extends Specification with FutureMatchers with Config
(as an example)The text was updated successfully, but these errors were encountered: