JUnit module projectization

Martin Brehovsky <[email protected]> Tue, 17 Jun 2003 17:29:14 +0200
Newsgroups gmane.comp.java.netbeans.modules.projects.devel
Message-ID <[email protected]>
Hi,

I'm working on projectization of JUnit module (I'm not working on code, 
but I'm just looking at a possible ways how to 'projectize' the JUnit 
module, so the workflow is somewhat similar to non-projectized version, 
but still it compatible with the projectized ide).

Currently JUnit module utilizes filesystems concept in such way, that 
you have sources in one directory mounted as a filesystem to repository 
and tests in a different directory again mounted to repository. The 
concept of two separate filesystems allows users to keep their tests 
separated from tested code, but still the tests can be in the same 
package as the tested code, so they can test package private methods of 
the code. I believe this functionality is appreciated by JUnit users, so 
I'm wondering how this could be transferred to projectized IDE.

I was thinking about the following way (but I don't know if this is 
possible). Currently there is Sources node with Packages subnode. 
Ideally I would like to see something like 'Unit Tests' or just 'Tests' 
node on the same level as Packages node is. Tests subnode could then 
contain just tests. The UI could look something like this:

Projects
|- MyProject (active)
    |- Sources
       |- Packages
          |- my.package
             |- HelloWorld
       |- Tests
          |- my.package
             |- HelloWorldTest



Needless to say, I would like to differentiate between building 
application and building tests (tests should depend on application, but 
when making a production build, they should not be included in the output).

Do you think this is possible with current projects?

Thanks,
B.