Might it work when adding the Junit container to the build path? At least in the last discussion about how to make tests work in both PDE and Tycho that was a crucial point,
AFAIR.
Mit freundlichen Grüßen / Best regards
Michael Keppler
LTO Release Engineering (ETAS/ESW-CI)
Tel. +49 711 3423-2429 | Fax +49 711 89661-0 | Michael.Keppler@xxxxxxxx
Von: tycho-user <tycho-user-bounces@xxxxxxxxxxx>
Im Auftrag von Christoph Läubrich
Gesendet: Mittwoch, 31. März 2021 08:55
An: Tycho user list <tycho-user@xxxxxxxxxxx>
Betreff: Re: [tycho-user] Tycho + source folder containing tests
I just created a small test, adding junit to the "automated dependecies section" and it works to compile this in PDE and run this as a plain test. Sadly running the test as a plugin test fails with bundle.test.AdderTest cannot be found by bundle.testwith
so it seems the "test-source-folder" itself is only partly supported by PDE.

Am 30.03.21 um 15:49 schrieb Andreas Sewe:
Mickael Istria wrote:
It would be interesting to let Tycho automatically build a test fragment
from the "test" source folders of the current module and make
tycho-surefire-plugin include it. But it involves tweaking a lot of
things in many mojo. The result would probably be great, but not easy to
reach IMO.
The problem with automatically creating a test fragment is test only
dependencies, i.e., stuff like
Import-Package: org.mockito
That's certainly something you don't want in your (non-test)
MANIFEST.MF, but where would you specify it in a manifest-first build?
(A POM-first build has test-scoped dependencies for this.)
Best wishes,
Andreas
_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/tycho-user