Hi Jan,
Tanks very much!!!!
Regards
Stefan
-----Ursprüngliche Nachricht-----
Von: tycho-user-***@eclipse.org <tycho-user-***@eclipse.org> Im Auftrag von Sievers, Jan
Gesendet: Dienstag, 10. Juli 2018 11:48
An: Tycho user list <tycho-***@eclipse.org>
Betreff: Re: [tycho-user] Problem with SureFire
JUnit provider auto-detection only works with well-known junit bundle names
https://github.com/eclipse/tycho/blob/eb1bf397506eb1c868f5a806a9dfc3c5a08a4b56/tycho-surefire/tycho-surefire-plugin/src/main/java/org/eclipse/tycho/surefire/provider/impl/JUnit4Provider.java#L35
you may be able to get a custom JUnit bundle to work by specifying a provider hint
https://www.eclipse.org/tycho/sitedocs/tycho-surefire/tycho-surefire-plugin/test-mojo.html#providerHint
but I think it's probably just better to stick with the standard JUnit bundle.
Regards
Jan
On 10.07.18, 11:15, "tycho-user-***@eclipse.org on behalf of Stefan Nöbauer" <tycho-user-***@eclipse.org on behalf of ***@kgu-consulting.com> wrote:
Hi Simon,
I found the problem. It was because of a jUnit bundle packed via bnd-platform.
My Manifest looks like:
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Tests
Bundle-SymbolicName: connector.common.tests
Bundle-Version: 1.0.0.qualifier
Bundle-Vendor: KGU-Consulting GmbH
Fragment-Host: connector.common;bundle-version="1.0.0"
Automatic-Module-Name: connector.common.tests
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
Export-Package: connector.common
Require-Bundle: org.mockito;bundle-version="2.13.0",
org.hamcrest;bundle-version="1.1.0",
org.junit;bundle-version="4.12.0"
Bundle-ClassPath: .
Now I use the jUnit bundle from the Orbit and tycho-surefire works fine
I am not sure yet what's the difference between this bundle and the bnd built bundle.
Thanx for your quick response!!!!
Stefan
-----Ursprüngliche Nachricht-----
Von: tycho-user-***@eclipse.org <tycho-user-***@eclipse.org> Im Auftrag von Simon Scholz
Gesendet: Dienstag, 10. Juli 2018 10:35
An: Tycho user list <tycho-***@eclipse.org>
Betreff: Re: [tycho-user] Problem with SureFire
Hi Stefan,
could you be more precise?
What does your MANIFEST.MF file look like?
Which dependencies do you have?
Which testing framework are you using?
Regards,
Simon
Post by Stefan NöbauerHi
I created a test fragment with one simple test.
I have no pom for this fragment.
I use Photon, M2E - Maven Integration for Eclipse 1.9.0, Tycho 1.2.0
Failed to execute goal
org.eclipse.tycho:tycho-surefire-plugin:1.2.0:test
(default-test) on project connector.common.tests: Could not determine
test framework provider. Available providers: [junit3, junit5, junit4,
testng, junit47] -> [Help 1]
What am I doing wrong?
Regards
Stefan
_______________________________________________
tycho-user mailing list
To change your delivery options, retrieve your password, or
unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/tycho-user
--
--
Trainer, Consultant and Developer
vogella GmbH
Haindaalwisch 17a, 22395 Hamburg
Amtsgericht Hamburg: HRB 127058
Geschäftsführer: Lars Vogel, Jennifer Nerlich de Vogel
USt-IdNr.: DE284122352
Tel (040) 78804360, Fax (032) 221739404, Email:
***@vogella.com, Web: http://www.vogella.com _______________________________________________
tycho-user mailing list
tycho-***@eclipse.org
To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/tycho-user
_______________________________________________
tycho-user mailing list
tycho-***@eclipse.org
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/tycho-user
_______________________________________________
tycho-user mailing list
tycho-***@eclipse.org
To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/tycho-user