testcontainers-scala icon indicating copy to clipboard operation
testcontainers-scala copied to clipboard

Any love for specs2?

Open i-am-the-slime opened this issue 7 years ago • 6 comments

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 avatar Jun 01 '17 14:06 i-am-the-slime

@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.

dimafeng avatar Jun 01 '17 14:06 dimafeng

any progress on this issue?

rators avatar Oct 04 '18 17:10 rators

@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.

dimafeng avatar Oct 05 '18 01:10 dimafeng

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.

JesusMtnez avatar Jan 29 '19 10:01 JesusMtnez

I'll have a go at this one. ;)

LLCampos avatar Sep 18 '21 10:09 LLCampos

Unfortunately, after having a look, it seems that this would take me more time than I'm willing to spend on it. :disappointed:

LLCampos avatar Sep 25 '21 10:09 LLCampos