title: SBT/Scala and Integration testing
body: <p>While researching on the subject of automating my integration tests, I found out a nice plugin in the maven world called FailSafe. it gives me phases like pre-integration-test, post-integration-test and integration-test. </p>
  
  <p>By tying into these phases, I can have other plugins which can start/stop and run docker images.</p>
  
  <p>The plugin also has a nice way in which I can differentiate between UnitTests and IntegrationTests (even though both are written in JUNIT).</p>
  
  <p>Well now the question is how can I do the same thing with Scala / SBT combination?</p>
  
  <p>my requirement is</p>
  
  <ol>
  <li>Write Integration tests in SpecFlow.</li>
  <li>Integration tests are treated differently than unit tests.</li>
  <li>First Unit Tests are run.</li>
  <li>Then docker containers are created and run</li>
  <li>then integration tests are run. </li>
  <li>docker contains are shut-down.</li>
  <li>test results are captured in files. (just like surefire/failsafe plugins).</li>
  </ol>
  
  <p>Is this possible in Scala/sbt combo?</p>