RE:Skipping the tests

23 views
Skip to first unread message

Sreekanth .Reddy

unread,
Jul 3, 2014, 7:57:28 AM7/3/14
to subs...@googlegroups.com
Hi,
          Is there a way to skip tests using substeps-maven-plugin ,to just execute the build without running the tests .

Thanks
Sreekanth

Ian Moore

unread,
Jul 4, 2014, 4:10:26 AM7/4/14
to subs...@googlegroups.com
Hi Sreekanth

I'm afraid we've not implemented anything like -DskipTests or similar as with the surefire plugin for running junit tests.  What you can do however is run your acceptance tests in a profile, which you can then disable if you want to skip the tests.

eg:
        <profile>
            <id>acceptance-tests</id>
            <build>
                <plugins>
                    <plugin>
                        <groupId>com.technophobia.substeps</groupId>
                        <artifactId>substeps-maven-plugin</artifactId>
                        <version>${substeps.version}</version>
                        <executions>
                            <execution>
                                <id>Substeps Test</id>
                                <phase>integration-test</phase>
                                <goals>
                                    <goal>run-features</goal>
                                </goals>
                            </execution>
                        </executions>
                         ....

Being able to skip tests with a -D parameter is useful though so I'll add that to our backlog.

Cheers
Ian
Reply all
Reply to author
Forward
0 new messages