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 139876 - test.config does not work as expected
Summary: test.config does not work as expected
Status: VERIFIED FIXED
Alias: None
Product: apisupport
Classification: Unclassified
Component: Harness (show other bugs)
Version: 6.x
Hardware: PC Linux
: P1 blocker (vote)
Assignee: Jaroslav Tulach
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-14 13:54 UTC by Tomas Danek
Modified: 2008-07-29 12:08 UTC (History)
2 users (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 Tomas Danek 2008-07-14 13:54:34 UTC
Assume you have module $MODULE with no test config specified in project properties. If you run binary test distribution
with -Dtest.modules=$MODULE -Dtest.config=stable, *all* tests are executed. Expected behavior is to don't execute any
test if there is no such config. This is a stopper for our daily test run.
Comment 1 Jesse Glick 2008-07-14 21:00:20 UTC
Possible solution: in common.xml and one-module.xml, change

<property name="test.config.${test.config}.includes" value="**/*Test.class"/>

to

<property name="test.config.default.includes" value="**/*Test.class"/>
<property name="test.config.${test.config}.includes" value="NOTHING"/>

and then update all modules defining special test configs to make sure they define test.config.<name>.includes to some
value. harness/README would also need to be updated to say that non-default configs are by default empty.
Comment 2 Jaroslav Tulach 2008-07-16 15:51:09 UTC
http://hg.netbeans.org/core-main/rev/6b7c6632552e
Comment 3 Quality Engineering 2008-07-22 13:48:43 UTC
Integrated into 'main-golden', available in NB_Trunk_Production #336 build
Changeset: http://hg.netbeans.org/main/rev/6b7c6632552e
User: Jaroslav Tulach <jtulach@netbeans.org>
Log: #139876: If test.config.NAME.includes is not specified, then execution of tests for test.config=NAME does not run any tests.
Comment 4 Tomas Danek 2008-07-29 12:08:07 UTC
thanks. works fine for our needs. Verified.