Libraries for Tests

I have several libraries that are only needed for running my unit tests. For example, my MockObject jars.

Since IDEA goes out of its way to differentiate the portion of my project containing Test classes from Src classes, I think you should also be able to mark a library as for test use only. If there is a way to do this now, I can't find it.

The inability to make this distinction causes my libraries panel to be a bit cluttered and I end up with extraneous JARs in my build that shouldn't be there.


The 4.x version of NetBeans actually handles this quite well by defining build, run, and test classpaths or libraries.

3 comments
Comment actions Permalink

Clark Richey wrote:

I have several libraries that are only needed for running my unit tests. For example, my MockObject jars.

Since IDEA goes out of its way to differentiate the portion of my project containing Test classes from Src classes, I think you should also be able to mark a library as for test use only. If there is a way to do this now, I can't find it.

The inability to make this distinction causes my libraries panel to be a bit cluttered and I end up with extraneous JARs in my build that shouldn't be there.


The 4.x version of NetBeans actually handles this quite well by defining build, run, and test classpaths or libraries.


here here. Have you opened a feature request? If so I'll go add my
voice there.

cheers
dim

0
Comment actions Permalink

Have you opened a feature request




There is
"Tag a whole module as "test" related"
http://www.jetbrains.net/jira/browse/IDEA-1833

, but I'm not sure it covers what you're seeking.

Alain

0
Comment actions Permalink

No, it's a good idea but it doesn't cover my situation. I have created a new feature request for this...IDEA-3589. Please support it!

0

Please sign in to leave a comment.