This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 219618 - Maven tests skipped without reason
Summary: Maven tests skipped without reason
Status: RESOLVED INVALID
Alias: None
Product: javaee
Classification: Unclassified
Component: Maven (show other bugs)
Version: 7.3
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Martin Janicek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-05 18:14 UTC by javydreamercsw
Modified: 2012-10-15 08:49 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (456.59 KB, text/plain)
2012-10-05 18:16 UTC, javydreamercsw
Details

Note You need to log in before you can comment on or make changes to this bug.
Description javydreamercsw 2012-10-05 18:14:51 UTC
Product Version = NetBeans IDE Dev (Build 201210050002)
Operating System = Windows 7 version 6.1 running on x86
Java; VM; Vendor = 1.7.0_07
Runtime = Java HotSpot(TM) Client VM 23.3-b01

If I try to test or Debug Test a file I always get:

[surefire:test]
Tests are skipped.

I went and disabled the skip test option in the Maven options to see if it got broken somehow without luck. The Maven command doesn't show an option skipTest=true or something to disable them.

When I test the whole project it works fine.
Comment 1 javydreamercsw 2012-10-05 18:16:34 UTC
The only way to make it work is forcing the -DskipTest=false when calling the goal. i.e. -Dtest=com.validation.manager.core.db.ProjectTest --check-plugin-updates test-compile surefire:test -DskipTests=false
Comment 2 javydreamercsw 2012-10-05 18:16:49 UTC
Created attachment 125478 [details]
IDE log
Comment 3 Martin Janicek 2012-10-08 07:58:10 UTC
Could you please attach problematic project so I'll be able to reproduce the problem? Also can you please check whether the problem occurs also in Maven Java SE projects? Thanks in advance!
Comment 4 javydreamercsw 2012-10-08 15:31:48 UTC
It worked fine on build: 201210070002, maybe an intermittent issue.
Comment 5 javydreamercsw 2012-10-08 16:59:02 UTC
I tried in the wrong project. It seems to be specific to my project. I tried both a JavaSE project and another Maven Web project successfully. You can find the sources here: https://javydreamercsw@bitbucket.org/javydreamercsw/validation-manager
Comment 6 Martin Janicek 2012-10-09 07:20:44 UTC
(In reply to comment #5)
> I tried in the wrong project. It seems to be specific to my project. I tried
> both a JavaSE project and another Maven Web project successfully. You can find
> the sources here:
> https://javydreamercsw@bitbucket.org/javydreamercsw/validation-manager

I can't access that site directly without registration. Would it be possible to attach the project right here? (or you can send me username/password privately to the martin.janicek@oracle.com)
Comment 7 javydreamercsw 2012-10-09 14:38:39 UTC
That's the Mercurial repository URL. You should be able to checkout from there.
Comment 8 Martin Janicek 2012-10-10 11:45:44 UTC
I've checkout your project, run project build with dependencies and now I can successfully run Test File and NetBeans show me correct results. For example for TestProjectTest.java I can see:

[surefire:test]
Surefire report directory: /tmp/validation-manager/Validation-Manager-Web/target/surefire-reports

Results :

Tests run: 1, Failures: 0, Errors: 0, Skipped: 0
------------------------------------------------------------------------
BUILD SUCCESS
------------------------------------------------------------------------
Comment 9 Martin Janicek 2012-10-10 11:50:23 UTC
You have set <skipTests>true</skipTests> in you pom.xml - which is most probably the reason why you need to set -DskipTests=false explicitly.
Comment 10 Martin Janicek 2012-10-15 08:49:42 UTC
Closing the issue as INVALID. The tests are skipped because of the pom.xml configuration: <skipTests>true</skipTests>