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 162755 - Junit testing taints version contolled tree source
Summary: Junit testing taints version contolled tree source
Status: RESOLVED DUPLICATE of bug 160777
Alias: None
Product: java
Classification: Unclassified
Component: Project (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Jan Jancura
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-15 19:40 UTC by mjreged
Modified: 2009-05-07 13:57 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Take a look at my workspace and see what i mean (81.20 KB, image/png)
2009-04-15 19:41 UTC, mjreged
Details
file created at root of my project (41.36 KB, image/png)
2009-04-16 15:46 UTC, mjreged
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mjreged 2009-04-15 19:40:33 UTC
Netbeans Dev 2009040131401

Please take a look at the attachment provided below.
Basically every time i run JUnit test inside my maven projects  ( run or debug )
xml file is generated inside version controlled tree. This can't be right
i would never consider putting this file on version control. Now i have to keep ignoring them which is tedious and not healthy for my blood pressure.
Comment 1 mjreged 2009-04-15 19:41:21 UTC
Created attachment 80186 [details]
Take a look at my workspace and see what i mean
Comment 2 Alexey Butenko 2009-04-16 11:44:44 UTC
I've tried with maven project. xml files with test results generated in target directory. target dir is also inside version control tree. But I guess you don't
keep it in version control system. Because what is the reason to keep directory with binary files there? 
Target directory automatically removed during project clean.
Comment 3 mjreged 2009-04-16 15:45:36 UTC
Sorry to disappoint but this file does not get created in the target folder.
it gets created in the root folder of my project along pom.xml

Take a look at the following screenshot.

I am sorry i should have made that more clear before.
Comment 4 mjreged 2009-04-16 15:46:27 UTC
Created attachment 80269 [details]
file created at root of my project
Comment 5 Alexey Butenko 2009-04-16 16:07:41 UTC
passing to maven.junit for evaluation
Comment 6 Milos Kleint 2009-04-17 08:28:54 UTC
it's caused by the JavaRunner (aka Compile on Save) infrastructure, most probably a duplicate of existing issue (I've
seen it reported more than once I think)

mjreged: if you turn compile on save off in the project properties, I suppose the issue goes away. Correct?

reassigning to java.
Comment 7 Jan Jancura 2009-05-07 13:57:28 UTC

*** This issue has been marked as a duplicate of 160777 ***