I'm using jbehave and the jbehave maven plugin to run a set of scenario tests.
Have my test class extending JUnitStories, and everything works nicely. Only issue is, I can't stop running the tests...
Every time I run the maven install goal, it runs the tests. I've tried adding a skip scenarios profile, below, but it doesn't stop the tests from running.
<profile>
<id>skipScenarios</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
</plugins>
</build>
</profile>
I've also tried using an exclude tag instead of the skip, and excluding my scenario class, but no luck.
I'd really appreciate any insight, or ideas you guys have! Thanks!
Still found no maven method to do this.
Easiest way seems to be to add a JVM parameter and use System.getProperty("theconfig") to decide whether or not to run scenarios.
Satisfactory, but not perfect solution.