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 83174 - Uncompilable tests
Summary: Uncompilable tests
Status: RESOLVED FIXED
Alias: None
Product: ide
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: pzajac
URL:
Keywords: UMBRELLA
Depends on: 83176 83178 83181 83183 83185 83190 83192 83193 83204 83209 88716 88719 88720 98777 98779
Blocks:
  Show dependency tree
 
Reported: 2006-08-22 13:49 UTC by pzajac
Modified: 2007-05-22 16:13 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 pzajac 2006-08-22 13:49:18 UTC
Many tests are uncompilable. Please fix them. Test can be compiled :
ant -f ${prjdir}/build.xml test-build - unit tests
ant -f ${prjdir}/build.xml test-build-qa-functional - qa-functional 
ant -f ${prjdir}/build.xml build-all-tests compiles tests if exists:
test/cfg-<xxx>.file

How to fix to it:
1) remove tests from cvs 
2) fix the tests if you want to run them
3) At least remove cfg-<xxx>.xml files

This issue blocks building binary test distribution:
http://apisupport.netbeans.org/TestDistAndDep.html
Comment 1 pzajac 2006-08-22 14:37:20 UTC
I found interesting comment  :-)

revision 1.13
date: 2005/09/15 20:10:34;  author: jglick;  state: Exp;  lines: +0 -5
Code cleanup of test cases in standard modules. By no means complete, just what
I got around to.
1. suite() methods that just included the tests introspected in the class. This
is the default anyway.
2. main() methods that didn't do anything special. The Ant harness should handle
this instead.
3. No-op overrides of setUp or tearDown - empty or only called super.
4. tearDown overrides which only nulled out vars which setUp would always
initialize anyway.
5. Old or missing copyright notices.
6. Unnecessary unimported FQNs and import list cleanups.
7. Obsolete or pointless comments left behind by some wizard.
8. Empty Javadoc comments. (Why do people write these?!)
A disturbing number of test cases were not compilable to begin with and still
won't be.
serverplugins/sun/appsrv81/test in particular is in poor condition.
Make sure xtest/inst
Comment 2 mslama 2006-09-05 15:39:47 UTC
Why TM is not set?
Comment 3 pzajac 2007-05-22 16:13:04 UTC
fixed