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 196008 - "Re-run failed tests" doesn't activate all profiles used with of "Debug test file"
Summary: "Re-run failed tests" doesn't activate all profiles used with of "Debug test ...
Status: RESOLVED INVALID
Alias: None
Product: projects
Classification: Unclassified
Component: Maven (show other bugs)
Version: 7.0
Hardware: PC Linux
: P3 normal (vote)
Assignee: Jesse Glick
URL:
Keywords:
Depends on: 204907
Blocks:
  Show dependency tree
 
Reported: 2011-02-25 15:08 UTC by pekarna
Modified: 2011-11-09 22:45 UTC (History)
0 users

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 pekarna 2011-02-25 15:08:13 UTC
STR:

1) Have a Maven project with a profiles ABC and BCD
2) Edit it's actions so the "Activated profiles" is "ABC BCD"
3  Add something to the profile BCD which proves it  was activated,
   like Ant's echo task, see e.g.
   http://ondra.zizka.cz/stranky/programovani/java/maven/profile-activation-and-properties.texy
4) Create some test file with `fail("Intentinal fail");`
5) Run "Debug Test File", let it finish gracefully
6) In the Test Results view, click "Re-run failed tests"
7) The profile BCD will not be activated.
Comment 1 pekarna 2011-02-25 15:09:44 UTC
If it matters, the BCD profile in my case was in settings.xml, not in pom.xml.
Comment 2 Jesse Glick 2011-02-28 16:03:51 UTC
Disable Compile on Save for test runs; it bypasses Maven so of course it will ignore any profiles.