Note that there are some explanatory texts on larger screens.

plurals
  1. PONetbeans maven-surefire-plugin not generating HTML
    text
    copied!<p>How can I run 'mvn'.</p> <p>I'm using Netbeans 7 and when I run my Unit tests, I do get generated XML files from my project /target folder</p> <p>/target/surefire-reports/TEST-package.name.ClassNameTest.xml</p> <p>/target/surefire-reports/TEST-package.name.ClassNameTest.txt</p> <p>But from all the xml and txt files from my test packages, </p> <p>I can't figure out how to generate a HTML Report. </p> <p>I'm currently using a Maven Netbeans Project. Here is my pom.xml file:</p> <pre><code>&lt;properties&gt; &lt;project.build.sourceEncoding&gt;UTF-8&lt;/project.build.sourceEncoding&gt; &lt;/properties&gt; &lt;dependencies&gt; &lt;dependency&gt; &lt;groupId&gt;junit&lt;/groupId&gt; &lt;artifactId&gt;junit&lt;/artifactId&gt; &lt;version&gt;4.10&lt;/version&gt; &lt;scope&gt;test&lt;/scope&gt; &lt;/dependency&gt; &lt;dependency&gt; &lt;groupId&gt;org.seleniumhq.selenium&lt;/groupId&gt; &lt;artifactId&gt;selenium-java&lt;/artifactId&gt; &lt;version&gt;2.11.0&lt;/version&gt; &lt;/dependency&gt; &lt;/dependencies&gt; &lt;groupId&gt;com.honeycomb&lt;/groupId&gt; &lt;artifactId&gt;com.honeycomb&lt;/artifactId&gt; &lt;!-- To use the report goals in your POM or parent POM --&gt; &lt;reporting&gt; &lt;plugins&gt; &lt;plugin&gt; &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt; &lt;artifactId&gt;maven-surefire-plugin&lt;/artifactId&gt; &lt;version&gt;2.10&lt;/version&gt; &lt;configuration&gt; &lt;testFailureIgnore&gt;true&lt;/testFailureIgnore&gt; &lt;/configuration&gt; &lt;/plugin&gt; &lt;/plugins&gt; &lt;/reporting&gt; </code></pre> <p></p> <p>I can get my tests to pass fine, I use the built in Unit Runner with Junit4 in Netbeans.</p> <p>I have googled all over the place, all I find is poorly documented examples and not a complete walkthrough on how to generate a report HTML file with my test outcomes.</p> <p>Not sure if this is relevant but Im developing under Windows XP. JDK 7. The Maven I use is straight out of the Netbeans Project. </p> <p>I have seen posts and examples through using:</p> <p><a href="http://maven.apache.org/maven-1.x/plugins/junit-report/goals.html" rel="nofollow">http://maven.apache.org/maven-1.x/plugins/junit-report/goals.html</a></p> <p>junit-report:report and junit-report but I can't seem to figure out any of this stuff. </p> <p>Just looking for a simple generated HTML file.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload