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 160194 - Rerun single test method does not work in Maven projects
Summary: Rerun single test method does not work in Maven projects
Status: RESOLVED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Maven (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Milos Kleint
URL:
Keywords:
Depends on:
Blocks: 72080
  Show dependency tree
 
Reported: 2009-03-12 16:11 UTC by Jesse Glick
Modified: 2009-03-21 08:38 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2009-03-12 16:11:00 UTC
Noted by sgtgarcia in issue #72080, but I had noticed this myself recently. The option is exposed but it does not
nothing when invoked.
Comment 1 Milos Kleint 2009-03-18 08:29:56 UTC
the latest code (after rewrite of maven junit integration to use the test runner apis) doesn't expose rerun single test
anywhere. The rerun button button in the component toolbar is enabled and will either rerun all tests, or the tests in
the given file only, depending how the window was populated.

changing to enhancement, it's a missing feature,not a bug. I don't currently know how to implement run single method
using maven alone. Unfortunately the ant based build script approach cannot be taken and the "compile on save" runner
doesn't support it either.
Comment 2 Jesse Glick 2009-03-18 16:58:41 UTC
CoS runner does support rerun single method, or at least it did last I checked; autoproject.java uses it.
Comment 3 sgtgarcia 2009-03-19 08:52:00 UTC
Maven already gives you class path and NetBeans "compile on save". 
I am wondering what's missing and how it works in other IDEs (Eclipse)?

Comment 4 Milos Kleint 2009-03-19 09:12:06 UTC
jglick: I see, the single method invokation constants are not exposed through he api though it seems, That's why I
haven't found them. I guess adding that action for cases when CoS is on could be fairly easy. Still, if someone disables
CoS (for good reasons oemtimes) it will disable the reruns, but I guess it's ok.
Comment 5 Milos Kleint 2009-03-19 10:42:11 UTC
http://hg.netbeans.org/main/rev/be3686c05545
Comment 6 Jesse Glick 2009-03-19 14:11:40 UTC
"the single method invocation constants are not exposed through the API" - please file a defect for JavaRunner so this
gets fixed.
Comment 7 Milos Kleint 2009-03-19 14:25:08 UTC
ok, see 160649
Comment 8 Quality Engineering 2009-03-21 08:38:59 UTC
Integrated into 'main-golden', will be available in build *200903210201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/be3686c05545
User: Milos Kleint <mkleint@netbeans.org>
Log: #160194 add run single method through compile on save