Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6820543
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T21:26:14+00:00 2026-05-26T21:26:14+00:00

How can I run ‘mvn’. I’m using Netbeans 7 and when I run my

  • 0

How can I run ‘mvn’.

I’m using Netbeans 7 and when I run my Unit tests, I do get generated XML files from my project /target folder

/target/surefire-reports/TEST-package.name.ClassNameTest.xml

/target/surefire-reports/TEST-package.name.ClassNameTest.txt

But from all the xml and txt files from my test packages,

I can’t figure out how to generate a HTML Report.

I’m currently using a Maven Netbeans Project. Here is my pom.xml file:

<properties>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>

<dependencies>
    <dependency>
        <groupId>junit</groupId>
        <artifactId>junit</artifactId>
        <version>4.10</version>
        <scope>test</scope>
    </dependency>
    <dependency>
        <groupId>org.seleniumhq.selenium</groupId>
        <artifactId>selenium-java</artifactId>
        <version>2.11.0</version>
    </dependency>  
</dependencies>
<groupId>com.honeycomb</groupId>
<artifactId>com.honeycomb</artifactId>

<!-- To use the report goals in your POM or parent POM -->  
<reporting>
    <plugins>
        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-surefire-plugin</artifactId>
            <version>2.10</version>
            <configuration>
                <testFailureIgnore>true</testFailureIgnore>
            </configuration>
        </plugin>
    </plugins>
</reporting>

I can get my tests to pass fine, I use the built in Unit Runner with Junit4 in Netbeans.

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.

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.

I have seen posts and examples through using:

http://maven.apache.org/maven-1.x/plugins/junit-report/goals.html

junit-report:report and junit-report but I can’t seem to figure out any of this stuff.

Just looking for a simple generated HTML file.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T21:26:15+00:00Added an answer on May 26, 2026 at 9:26 pm

    If you run the command mvn surefire-report:report, then you should find a file called target/site/surefire-report.html gets generated after surefire runs your tests again.

    If you’re just running from the command-line, then I think this will get you what you want. If you’re using a CI server like Jenkins or Hudson, then I would suggest looking into the Sonar server and its reports.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I know you can run all the tests in a certain class using: mvn
I can run my project through netbeans but after I make a jar file
How can i run multiple sql files from one main sql files in postgres.
I can run Bash shell commands from with a Ruby program or irb using
I can run my Java Swing application from Eclipse without problems. But when I
I can run a command line process using process.start() . I can provide input
Can a windows service be set to run at a specific time..? Example From
I can run db.repairDatabase() from the mongodb shell but I can't find an example
I can run all my reports from report studio just fine. So its not
I can't seem to run a simple Hello World program using eclim. I followed

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.