Add option to skipTests
Closed this issue · 2 comments
piotrppe commented
Is it possible to skip tests for grunt goal (when running maven with -DskipTests)?
I tried this:
<plugin>
<groupId>pl.allegro</groupId>
<artifactId>grunt-maven-plugin</artifactId>
<version>1.5.0</version>
<configuration>
<sourceDirectory>${basedir}</sourceDirectory>
<jsSourceDirectory>src/main/resources/path/ng</jsSourceDirectory>
<showColors>true</showColors>
</configuration>
<executions>
<execution>
<id>grunt-compile</id>
<phase>compile</phase>
<goals>
<goal>create-resources</goal>
<goal>npm</goal>
<goal>grunt</goal>
</goals>
<configuration>
<target>default-no-tests</target>
</configuration>
</execution>
<execution>
<id>grunt-test</id>
<phase>test</phase>
<goals>
<goal>grunt</goal>
</goals>
<configuration>
<target>test-only</target>
<skipTests>${skipTests}</skipTests>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
but right now plugin doesn't seem to respect 'skipTests' option.
adamdubiel commented
See #43 :)