testcontainers-scala
testcontainers-scala copied to clipboard
Any love for specs2?
We are using specs2 for our tests. Is it possible to use this library with it? Do you think we should try to bend the java version of testcontainers to our will?
@i-am-the-slime you can use the com.dimafeng.testcontainers.Container
trait and manage its lifecycle at your own code via starting()
, finished()
, etc. This approach should simplify usage of the testcontainers comparing to usage of the java version.
If you could manage to run it in your specs2 environment and share the code snippets, I would be able to add specs2 support to this project.
any progress on this issue?
@rators I saw this project - https://github.com/ChristopherDavenport/testcontainers-specs2 but I'm not sure if it's what you're looking for.
But if you're interested in contributing specs2 support into the project I'd love to help with that.
I've used https://github.com/ChristopherDavenport/testcontainers-specs2 multiple times, it is a very nice integration. You can achieve the same using specs2
instead of scalatest
.
But maybe it would be great to unify that in this repository, so testcontainers-scala
offers both integrations, making easier to keep both libraries up to date.
I'll have a go at this one. ;)
Unfortunately, after having a look, it seems that this would take me more time than I'm willing to spend on it. :disappointed: