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 185194

Summary: Error "You must set 'suite.dir'" when running test-generate-html target
Product: apisupport Reporter: tomwheeler <tomwheeler>
Component: HarnessAssignee: Jesse Glick <jglick>
Status: VERIFIED FIXED    
Severity: normal    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 148068    
Attachments: ZIP file containing a minimal suite which demonstrates the problem

Description tomwheeler 2010-04-28 15:48:28 UTC
Created attachment 98213 [details]
ZIP file containing a minimal suite which demonstrates the problem

Per the harness' README, one can execute the test-generate-html target after running tests in order to generate JUnit reports in HTML format.

I created a simple suite with a single module containing one class and a test for that class.  I can successfully compile, run and test the application, but attempting to run the test-generate-html target after running the test yields the following error:

test-generate-html:
D:\devtools\netbeans\6.9b\ide\harness\common.xml:685: The following error occurred while executing this line:
C:\Documents and Settings\twheeler\My Documents\NetBeansProjects\junitreporttest\BasicMath\build.xml:7: The following error occurred while executing this line:
C:\Documents and Settings\twheeler\My Documents\NetBeansProjects\junitreporttest\BasicMath\nbproject\build-impl.xml:16: You must set 'suite.dir' to point to your containing module suite
BUILD FAILED (total time: 0 seconds)


The module does contain the standard suite.properties and its suite.dir property is set to point back to the suite.  

I will attach a ZIP file demonstrating the problem.
Comment 1 tomwheeler 2010-04-28 15:51:45 UTC
I will also note that changing the value of the inheritall attribute on line 685 of the common.xml file from "false" to "true" fixes this problem, though I cannot say whether that would have unwanted side effects.
Comment 2 Jesse Glick 2010-04-28 22:58:58 UTC
Confirmed problem and your fix. An old change was never tested against suite component modules.
Comment 3 Jesse Glick 2010-04-28 23:00:07 UTC
core-main #c2e7770c8b5b
Comment 4 tomwheeler 2010-05-04 17:40:28 UTC
Verified using the following environment:

Product Version: NetBeans IDE Dev (Build 201005040200)
Java: 1.6.0_20; Java HotSpot(TM) Client VM 16.3-b01
System: Windows XP version 5.1 running on x86; Cp1252; en_US (nb)