run jasmine.js test as part of Maven 'test' goal -
i have following jasmine tests configuration in project pom.xml:
<pluginmanagement> <plugins> <plugin> <groupid>com.github.searls</groupid> <artifactid>jasmine-maven-plugin</artifactid> <version>1.1.0</version> <executions> <execution> <goals> <goal>test</goal> <goal>jasmine</goal> </goals> </execution> </executions> <configuration> <jssrcdir>${basedir}/src/main/js</jssrcdir> <sourceincludes> <include>mycode.js</include> </sourceincludes> <jstestsrcdir>${basedir}src/test/js/specs</jstestsrcdir> <specincludes> <include>myspec.js</include> </specincludes> </configuration> </plugin> ...
with configuraton can run jsamine:test
, test wil run.
i want run tests part of goal test
, maven won't run them. tried removing line <goal>jasmine</goal>
maven still won't run jasmine tests.
what doing wrong?
you must add execution of plugin project:
<project> <build> <plugins> <plugin> <groupid>com.github.searls</groupid> <artifactid>jasmine-maven-plugin</artifactid> </plugin> </plugins> </build> </project>
cause 1 you've defined in pluginmanagement not execute plugin.
Comments
Post a Comment