Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Developer
Posts: 455
Registered: ‎01-14-2009
My Device: Apple iPhone 3GS 16GB

How to separate unit test code with production code

I have my application and unit tests in a single code base. I have got alternate entry points which when invoked, will run just the tests, which is all good. I have the test code inside the production code which I am a bit hesitant to have it there. How do I separate the unit test code to a separate project ? If that's not possible, what's the best recommended way to separate the unit tests from the production code?

Developer
Posts: 16,992
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: How to separate unit test code with production code

how about a test project dependent on the real one?
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Highlighted
Developer
Posts: 455
Registered: ‎01-14-2009
My Device: Apple iPhone 3GS 16GB

Re: How to separate unit test code with production code

Yes, that would be the best way to do it. but is it possible in eclipse ? I tried to add the Application to my test app build path , but it is failing saying preverify error . Whats the best way to do this using eclipse? or should i go back to jde?