I have a series of JBehave tests that I run from the command line via
I am trying to decorate a subset of tests with a meta tag
, which only get run on-demand:
Following <a href="https://stackoverflow.com/questions/11742151/filtering-with-multiple-metafilters-in-jbehave">Filtering with multiple metafilters in JBehave</a>, I try the following command line:
This runs all the tests in the suite. For completeness, I also tried
and
as described at <a href="https://kowalcj0.wordpress.com/2013...s-tagged-with-multiple-words-in-a-meta-field/" rel="nofollow noreferrer">https://kowalcj0.wordpress.com/2013...s-tagged-with-multiple-words-in-a-meta-field/</a>. None of these appear to successfully filter.
And for completeness, the pom.xml segment related to JBehave is
1) What is the proper syntax for decorating a story for inclusion?
2) What is the proper command-line?
3) Is there something unusual with the pom.xml definition that is intercepting or breaking the metafilter?
Code:
mvn integration-test
I am trying to decorate a subset of tests with a meta tag
Code:
SpecialPurpose
Code:
Meta:
@SpecialPurpose
Scenario: Run this test only from the nightly build
Following <a href="https://stackoverflow.com/questions/11742151/filtering-with-multiple-metafilters-in-jbehave">Filtering with multiple metafilters in JBehave</a>, I try the following command line:
Code:
mvn integration-test -Djbehave.meta.filter="myCustomRunConf:(+SpecialPurpose)"
This runs all the tests in the suite. For completeness, I also tried
Code:
mvn integration-test -Djbehave.meta.filter="+SpecialPurpose"
and
Code:
mvn integration-test -Dmeta.filter="+SpecialPurpose"
as described at <a href="https://kowalcj0.wordpress.com/2013...s-tagged-with-multiple-words-in-a-meta-field/" rel="nofollow noreferrer">https://kowalcj0.wordpress.com/2013...s-tagged-with-multiple-words-in-a-meta-field/</a>. None of these appear to successfully filter.
And for completeness, the pom.xml segment related to JBehave is
Code:
<build>
<plugins>
<plugin>
<groupId>net.serenity-bdd.maven.plugins</groupId>
<artifactId>serenity-maven-plugin</artifactId>
<version>1.5.0</version>
<executions>
<execution>
<id>serenity-reports</id>
<phase>post-integration-test</phase>
<goals>
<goal>aggregate</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<executions>
<execution>
<id>integration-test</id>
<goals>
<goal>integration-test</goal>
<goal>verify</goal>
</goals>
</execution>
</executions>
<configuration>
<includes>
<include>**/integration/*.java</include>
<include>**/integration/component1/*.java</include>
<include>**/integration/component2/*.java</include>
<include>**/integration/component3/*.java</include>
</includes>
<reuseForks>false</reuseForks>
<trimStackTrace>false</trimStackTrace>
</configuration>
</plugin>
</plugins>
</build>
1) What is the proper syntax for decorating a story for inclusion?
2) What is the proper command-line?
3) Is there something unusual with the pom.xml definition that is intercepting or breaking the metafilter?