While researching the automation issues of my integration tests, I found out a good plugin in the maven world called FailSafe. it gives me phases like pre-integration-test, post-integration-test and integration-test.
Attaching to these steps, I may have other plugins that can start / stop and launch docker images.
There is also a good way in the plugin with which I can distinguish between UnitTests and IntegrationTests (although both are written in JUNIT).
Well, now the question is, how can I do the same with the Scala / SBT combination?
My requirement
- Record integration tests in SpecFlow.
- Integration tests are handled differently than unit tests.
- The first unit tests are performed.
- Then docker containers are created and run.
- integration tests are performed.
- contains dockers.
- Test results are written to files. (same as surefire / fail-safe plugins).
Is this possible in a Scala / sbt combo?
source share