Java ME: Junit jar packaged with application .jar
Hi,
I'm working on a Java ME application. I'm using junit to do some unit testing.
The problem is now that whenever I tell IntelliJ to compile the .jar it packages the jar into it. This way junit is deployed with the application.
Is there a way to mark the jar as excluded?
Is there a way to mark a lib as testing lib and exclude all test libs?
Thanks!
Wallaby
Please sign in to leave a comment.
Hello,
you may add separate module for tests with dependency on the initial module.
Then test jars won't go to the applications jars
Thank you
-
Anna Kozlova
JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"