(Kind of) skip autobahn testsuite on -DskipTests

- autobahntestsuite-maven-plugin does not provide a way to skip all
  tests, so we run only one simple test when -DskipTests is set
This commit is contained in:
Trustin Lee 2014-02-07 14:18:39 -08:00
parent 617739c515
commit ea345f6421

View File

@ -71,12 +71,44 @@
</dependency> </dependency>
</dependencies> </dependencies>
<!--
autobahntestsuite-maven-plugin lacks an option to skip the testsuite,
so we run the least possible number of tests when skipTests or skipAutobahnTestsuite is set.
-->
<properties>
<enabledCase>*</enabledCase>
</properties>
<profiles>
<profile>
<id>skipTests</id>
<activation>
<property>
<name>skipTests</name>
</property>
</activation>
<properties>
<enabledCase>1.1.1</enabledCase>
</properties>
</profile>
<profile>
<id>skipAutobahnTestsuite</id>
<activation>
<property>
<name>skipAutobahnTestsuite</name>
</property>
</activation>
<properties>
<enabledCase>1.1.1</enabledCase>
</properties>
</profile>
</profiles>
<build> <build>
<plugins> <plugins>
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId> <artifactId>maven-jar-plugin</artifactId>
<version>2.4</version>
<executions> <executions>
<execution> <execution>
<goals> <goals>
@ -85,20 +117,6 @@
</execution> </execution>
</executions> </executions>
</plugin> </plugin>
</plugins>
</build>
<profiles>
<profile>
<!-- Only run the autobahntestsuite if it is not disabled -->
<id>autobahntestsuite</id>
<activation>
<property>
<name>!skipAutobahnTestsuite</name>
</property>
</activation>
<build>
<plugins>
<plugin> <plugin>
<groupId>me.normanmaurer.maven.autobahntestsuite</groupId> <groupId>me.normanmaurer.maven.autobahntestsuite</groupId>
<artifactId>autobahntestsuite-maven-plugin</artifactId> <artifactId>autobahntestsuite-maven-plugin</artifactId>
@ -106,9 +124,9 @@
<configuration> <configuration>
<mainClass>io.netty.testsuite.websockets.autobahn.AutobahnServer</mainClass> <mainClass>io.netty.testsuite.websockets.autobahn.AutobahnServer</mainClass>
<cases> <cases>
<case>*</case> <case>${enabledCase}</case>
</cases> </cases>
<excludeCases></excludeCases> <excludeCases/>
<failOnNonStrict>false</failOnNonStrict> <failOnNonStrict>false</failOnNonStrict>
</configuration> </configuration>
<executions> <executions>
@ -122,7 +140,6 @@
</plugin> </plugin>
</plugins> </plugins>
</build> </build>
</profile>
</profiles>
</project> </project>