Closed piotrppe closed 9 years ago
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.
See #43 :)
And this: https://github.com/allegro/grunt-maven-plugin/wiki/Distributing-grunt-tasks-across-multiple-Maven-lifecycle-phases
Is it possible to skip tests for grunt goal (when running maven with -DskipTests)?
I tried this:
but right now plugin doesn't seem to respect 'skipTests' option.