I'm working in a setup that has an embedded elastic search instance for unit testing purposes, but when I run the tests continuously with sbt (~test-only <my-test>
) the system becomes increasingly unstable until it freezes and has to be killed with fire.
Things I'm having a hard time getting to work properly are:
- isolation
- cleanup
- shutdown
What is the proper way to set this up, (solutions preferably using specs2, but Java based is also welcome)?