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

1 comment
Comment actions Permalink

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!"

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
---
Original message URL:
http://www.jetbrains.net/devnet/message/5229627#5229627



0

Please sign in to leave a comment.