Running Maven JS Tests
Frontend Maven Plugin, npm. - , - , , . :
<plugin>
<groupId>com.github.eirslett</groupId>
<artifactId>frontend-maven-plugin</artifactId>
<version>0.0.24</version>
<executions>
<execution>
<id>Install NodeJS and NPM</id>
<goals>
<goal>install-node-and-npm</goal>
<goal>npm</goal>
</goals>
<configuration>
<nodeVersion>v0.12.7</nodeVersion>
<npmVersion>2.11.3</npmVersion>
</configuration>
</execution>
</executions>
</plugin>
:
<execution>
<id>UI Unit Tests</id>
<goals>
<goal>karma</goal>
</goals>
<configuration>
<karmaConfPath>${project.basedir}/src/test/unit-js/karma.conf.js</karmaConfPath>
<skip>${unit.ui.tests.skip}</skip>
</configuration>
</execution>
Protractor ( npm):
<execution>
<id>UI Component Tests</id>
<goals>
<goal>npm</goal>
</goals>
<phase>test</phase>
<configuration>
<arguments>run component</arguments>
<skip>${component.ui.tests.skip}</skip>
</configuration>
</execution>
. JS- (, Karma, Jasmine), . xUnit CI (, Jenkins) . Allure , ( , ).