在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):karma-runner/maven-karma-plugin开源软件地址(OpenSource Url):https://github.com/karma-runner/maven-karma-plugin开源编程语言(OpenSource Language):Java 100.0%开源软件介绍(OpenSource Introduction):maven-karma-pluginProvides the ability to run tests via Karma as part of your Maven build.
UsageNote that the plugin expects Karma (and nodejs of course) to have been installed beforehand and for the Example of a typical usage: <plugin>
<groupId>com.kelveden</groupId>
<artifactId>maven-karma-plugin</artifactId>
<version>1.6</version>
<executions>
<execution>
<goals>
<goal>start</goal>
</goals>
</execution>
</executions>
<configuration>
<browsers>PhantomJS</browsers>
</configuration>
</plugin> Full Example: <plugin>
<groupId>com.kelveden</groupId>
<artifactId>maven-karma-plugin</artifactId>
<version>1.6</version>
<executions>
<execution>
<phase>test</phase>
<goals>
<goal>start</goal>
</goals>
</execution>
</executions>
<configuration>
<karmaExecutable>${basedir}/node_modules/.bin/karma</karmaExecutable>
<configFile>src/main/webapp/resources/karma-0.10.2.conf.js</configFile>
<junitReportFile>src/main/webapp/resources/test-results.xml</junitReportFile>
<reportsDirectory>${project.build.directory}/karma-reports</reportsDirectory>
<browsers>PhantomJS</browsers>
<autoWatch>false</autoWatch>
<singleRun>true</singleRun>
<colors>true</colors>
<skipKarma>false</skipKarma>
<skipTests>false</skipTests>
<karmaFailureIgnore>false</karmaFailureIgnore>
<reporters>dots,junit</reporters>
</configuration>
</plugin> (In particular, note the use of the More informationJust run:
The plugin simply shells out to Note that only the subset of Note also that if a property isn't specified in the POM it will not be passed to Using a local karma installationBy default, the plugin assumes that karma is installed globally via ContributingBug reports are welcome - pull requests to fix aforementioned bugs even more so! Apart from that, there really isn't much to the plugin and I think it's best to keep it that way. Am open to other thoughts on that though. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论