Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[buckminster-dev] how to have junit available in headless buckminster

Title: how to have junit available in headless buckminster

In our source tree, the junit tests are in the same bundle as the regular code (though in a src-test/ folder).
The manifest.mf does not depend on a junit bundle.
The workspace compiles with an IDE, thanks to .classpath files having this line:
<classpathentry kind="con" path="org.eclipse.jdt.junit.JUNIT_CONTAINER/4"/>

When i try to invoke a buckminster build on such a workspace i get

Error: file /tmp/ws/plugins/com....Test.java, line 17: The method assertTrue(boolean) is undefined for the type ...Test
Error: file /tmp/ws/plugins/com....Test.java, line 28: The method assertNotNull(EmptyBeanFace) is undefined for the type ...Test
Error: file /tmp/ws/plugins/com....Test.java, line 10: The hierarchy of the type ...Test is inconsistent

etc.

I don't know where to tackle this problem:
- is it a matter of extending the headless buckminster with some junit-awareness,
- or is something missing from my target definition,
- or is something wrong with my bundle structure and the usage of the .classpath file?

DISCLAIMER:
Unless indicated otherwise, the information contained in this message is privileged and confidential, and is intended only for the use of the addressee(s) named above and others who have been specifically authorized to receive it. If you are not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this message and/or attachments is strictly prohibited. The company accepts no liability for any damage caused by any virus transmitted by this email. Furthermore, the company does not warrant a proper and complete transmission of this information, nor does it accept liability for any delays. If you have received this message in error, please contact the sender and delete the message. Thank you.


Back to the top