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 62669 - compile tests along with source code
Summary: compile tests along with source code
Status: CLOSED WONTFIX
Alias: None
Product: apisupport
Classification: Unclassified
Component: Project (show other bugs)
Version: 5.x
Hardware: All Mac OS X
: P2 blocker (vote)
Assignee: Jesse Glick
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-19 13:57 UTC by Milos Kleint
Modified: 2005-12-12 14:19 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 Milos Kleint 2005-08-19 13:57:32 UTC
It happened to me already a few times that I commited a change that broke
compilation of tests. It seems that one has to run test in order to compile them.

I would expect from the build script to notify me that I changed a method
signature that is used by test. That's easily achievable by forcing the clean
build to compile both sources and test sources.
Comment 1 Jesse Glick 2005-08-19 19:28:12 UTC
apisupport is simply being consistent with other project types. If you want to
always build & run tests, use Alt-F6 rather than F11. Anyway you *do* need to
run tests before committing a change to the trunk; that's what they're there for.
Comment 2 Milos Kleint 2005-08-22 06:34:55 UTC
and what about at least an option to build tests along with sources? 
The issue is not about running tests. 

I don't argue that I should have run the tests before integration. I admit
sometimes I forget. But aren't tools here to help us being consistent? Compiling
(not running) tests along the sources is a cheap operation but helps in
signalling that something got broken.
Comment 3 Milos Kleint 2005-08-22 14:26:08 UTC
BTW not sure if it's just the case of apisupport/project but running tests on a
clean box doesn't work because one has to run tests in ant/project first.
Otherwise the compilation fails.
Comment 4 Jesse Glick 2005-08-22 21:42:48 UTC
Daily tester machine is intended for that in general. Currently won't run
apisupport tests - we need to refactor many of them to not require a full
netbeans.org checkout.

Dep on ant/project's test-build was already removed.

If you use Linux you can just

echo testedmodule=apisupport/project >> nbbuild/misc/build-site-local.sh

If you don't, consider porting the script to your OS of choice.
Comment 5 Tomas Danek 2005-12-12 14:19:13 UTC
There's a target "test-build", which may do the job. Closing, but feel free to
reopen.