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 93005 - Add build-unit.xml ant task to to editor/lib/test
Summary: Add build-unit.xml ant task to to editor/lib/test
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Vitezslav Stejskal
URL:
Keywords: TEST
Depends on:
Blocks:
 
Reported: 2007-01-23 09:55 UTC by pzajac
Modified: 2007-11-05 13:44 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 pzajac 2007-01-23 09:55:51 UTC
Binary test distribution build tests for module if cfg-unit.xml exists. The
build fails when is missing  build-unit.xml in build folder. Please add
build-unit.xml file to test folder. The build-unit.xml is needed for test
execution.
Comment 1 Vitezslav Stejskal 2007-01-23 10:19:05 UTC
I'll do that.
Comment 2 Vitezslav Stejskal 2007-01-23 22:12:23 UTC
There were no unit tests at all (ie. no unit/src folder), which was why the
tests could not have been built and run. I've fixed that and added a dummy test,
so that the stable suite passes ok now.

Is it really neccessary to have build-unit.xml? It normally only includes
.../nbbuild/templates/xtest-unit.xml and otherwise it's empty. Our test
compilers and executors in cfg-unit.xml call directly xtest-unit.xml.
Comment 3 pzajac 2007-01-24 08:56:04 UTC
Thanks. I'll have to improve algorithm for detecting test. I can also test
existence of files:

for unit tests:

src/unit
unit/src
build.xml
build-unit.xml

for qa-functional tests:
qa-functional/src
build.xml
build-qa-functional.xml 

Comment 4 Vitezslav Stejskal 2007-01-24 10:09:29 UTC
I see. I would thing that the starting point should be cfg-unit.xml and
cfg-qa-functional.xml, parse them and look for testbags with 'stable' or
'validation' attributes. The config files are the real definition of what tests
are available for a module. The ant files are just our way how to run those test
and the location of the test source files can be anything as long as it's
correctly mentioned in the config files. So, what you really need to look at is
the test suites definition in the config files.
Comment 5 pzajac 2007-01-24 10:44:18 UTC
>I would thing that the starting point should be cfg-unit.xml and
>cfg-qa-functional.xml, parse them and look for testbags with 'stable' or
>'validation' attributes.

All possible tests are built now. The parsing of cfg-unit.xml is done before
test execution. We can distinguish between test for differnt configuration by
using xtest.attribs. I know currently two usacas:
1) j2ee-stable - some j2ee tests requires installation of app server
2) svn-stable - tests for subversions depends on installation of subversion