Maven surefire-plugin doesn’t run integration tests (they named with “IT” suffix by convention), but sbt runs both: unit and integration. So, how to prevent this behaviour? Is there a common way to distinguish integration and unit tests for ScalaTest (don’t run FeatureSpec-tests by default)
Maven surefire-plugin doesn’t run integration tests (they named with IT suffix by convention), but
Share
How to do that is exactly documented on the sbt manual on http://www.scala-sbt.org/release/docs/Detailed-Topics/Testing#additional-test-configurations-with-shared-sources :
Call
sbt testfor unit tests andsbt fun:testfor integration test andsbt test fun:testfor both.