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 214246 - Tests cannot be re-run in NM Modules
Summary: Tests cannot be re-run in NM Modules
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: JUnit (show other bugs)
Version: 7.2
Hardware: PC Linux
: P3 normal with 1 vote (vote)
Assignee: Theofanis Oikonomou
URL:
Keywords:
: 199967 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-06-15 00:42 UTC by mago_ebon
Modified: 2013-08-22 04:27 UTC (History)
5 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
screenshot (34.21 KB, image/png)
2012-12-03 10:35 UTC, Tomas Mysik
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mago_ebon 2012-06-15 00:42:48 UTC
When I'm working on a NB Module project, after I run tests, the re-run tests button on the tests results panel stays disabled.
Comment 1 mago_ebon 2012-06-15 01:43:11 UTC
I'm testing this on Windows 7 and is working perfectly normal. I could be only on Linux (Ubuntu)
Comment 2 Milos Kleint 2012-06-26 15:19:22 UTC
are the projects on win and linux exactly the same? Are they using the same build system and junit version?

after creating a module in ant suite and generating some tests (junit 4.x) I don't see the buttons enabled on windows 7
Comment 3 mago_ebon 2012-07-04 03:14:29 UTC
I have been testing in Windows with both JUnit 3 and 4 versions. The bug is also there. In Linux I have only tested with JUnit 3.
Comment 4 Theofanis Oikonomou 2012-11-16 20:40:01 UTC
*** Bug 199967 has been marked as a duplicate of this bug. ***
Comment 5 Libor Fischmeistr 2012-11-20 09:21:58 UTC
Retested on both Linux and Windows and it works properly. Both JUnit 3 and 4.

Closing as WORKSFORME

You can try newer version of NetBeans. If this problem will still appear, reopen this issue but at least upload IDE log (http://wiki.netbeans.org/FaqLogMessagesFile).

Thanks
Comment 6 Tomas Mysik 2012-12-03 10:35:38 UTC
Still reproducible for me, with the latest devu build.

Steps:
- open a NB module
- run its unit tests, some of them must fail
-> result: Rerun button is disabled

Attaching screenshot. Thanks.

Product Version: NetBeans IDE Dev (Build 20121203-37a04330d174)
Updates: NetBeans IDE is updated to version , NetBeans 7.3 Beta 2
Java: 1.6.0_37; Java HotSpot(TM) 64-Bit Server VM 20.12-b01
Runtime: Java(TM) SE Runtime Environment 1.6.0_37-b06
System: Linux version 3.5.0-19-generic running on amd64; UTF-8; cs_CZ (nb)
Comment 7 Tomas Mysik 2012-12-03 10:35:59 UTC
Created attachment 128761 [details]
screenshot
Comment 8 Ondrej Vrabec 2012-12-04 11:47:52 UTC
1) org.netbeans.modules.apisupport.project.ui.ModuleActions needs to be tweaked and the javac.includes property has to be set in setupTestSingle(...) and probably others:
> p.setProperty("test.includes", testSources.includes().replace("**", "**/*Test.java")); // NOI18N
2) there are more problems with re-run failed in junit itself.
Passing to fanis, please can you take a look at it?
Comment 9 Jiri Kovalsky 2013-08-14 10:06:38 UTC
Any update on this?
Comment 10 Theofanis Oikonomou 2013-08-15 14:53:36 UTC
(In reply to Jiri Kovalsky from comment #9)
> Any update on this?

I will try to have a fix for 7.4 time frame
Comment 11 Theofanis Oikonomou 2013-08-20 15:26:37 UTC
Fixed: http://hg.netbeans.org/core-main/rev/3e2f0e1c1042
Comment 12 Quality Engineering 2013-08-22 04:27:08 UTC
Integrated into 'main-silver', will be available in build *201308212300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/3e2f0e1c1042
User: Theofanis Oikonomou <theofanis@netbeans.org>
Log: #214246 - Tests cannot be re-run in NM Modules