Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Can tycho build both an eclipse OSGi bundle and a test jar from one project?

>>>>> Steinar Bang <sb@xxxxxx>:

> Is it possible for tycho to build both an eclipse OSGi bundle and a test
> jar from one single project?

> The idea is to write JUnit test classes that tests the classes in the
> OSGi bundle without going through OSGi, ie. use the bundle as a plain
> old jar.

> As for the question: "why would I want to do that?", the answer is that
> I would like to unit test the business logic in the Java classes without
> thinking about all of the surrounding layers.

I found this blog post, which looks promising:
 http://mukis.de/pages/simple-junit-tests-with-tycho-and-surefire/



Back to the top