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 160682 - [67cat] Running test behaviour is different from NetBeans 6.5
Summary: [67cat] Running test behaviour is different from NetBeans 6.5
Status: RESOLVED WORKSFORME
Alias: None
Product: java
Classification: Unclassified
Component: Project (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Tomas Zezula
URL:
Keywords:
: 160131 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-03-19 20:34 UTC by Eduardo.m Costa
Modified: 2011-04-27 09:16 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eduardo.m Costa 2009-03-19 20:34:05 UTC
[ BUILD # : 200902231810 ]
[ JDK VERSION : 1.6.* ]

Steps to reproduce:
1. Create a Java Application project
2. Create two java classes
3. Create JUnit tests for both classes
4. Keep one JUnit class selected

Expected behaviours (as in NB 6.5):
A. User activates action "Run file" (Shift-F6) or "Debug file"
(Ctrl-Shift-F5): the selected test should be run and progress handle
must show "<Project> (test-single)"

B. User activates action "Test file" (Ctrl-F6) or "Debug Test file"
(Ctrl-Shift-F6): the selected test should be run and progress handle
must show "<Project> (test-single)"

Current results:
A. A message "Class <x> does not have a main method" and test isn't
run/debugged

B. Test is run/debugged, but the progress handle shows "<Project>
(test)" - can't tell if all tests are run or only a single one

Observation:
A. This can be a new behaviour, to allow tests that have a "main"
method, but this must be obvious to user - maybe a new message like
"Class does not have a main method - if you want to run this file as
a test suit, use 'Test file (Ctrl-F6)'"
Comment 1 Andrey Yamkovoy 2009-03-24 11:22:22 UTC
All actions defined on the project side.
Reassign to java project for evaluation.
Comment 2 Jan Jancura 2009-03-27 11:04:45 UTC
You are right.
Comment 3 Jan Jancura 2009-03-27 11:06:08 UTC
You are right.
Comment 4 Jan Jancura 2009-03-27 11:06:28 UTC
*** Issue 160131 has been marked as a duplicate of this issue. ***
Comment 5 Tomas Zezula 2011-04-27 09:16:30 UTC
Works fine in dev. The test is executed.
Regarding the (test-single) it's just a name of executed ant target and it may change.