[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [tycho-user] Problem loading resources from classpath in tests
|
Zitat von "Sievers, Jan" <jan.sievers@xxxxxxx>:
The tests pass when run from inside Eclipse.
when you say "run from inside Eclipse", do you mean
Run As > JUnit Test
or
Run As > JUnit Plugin Test?
The test code is in a bundle but it's a plain JUnit Test (I'm not
starting a platform).
But that gives me an idea: The Tycho Surefire plugin does in fact
start the OSGi platform and it "installs" my test code as a plugin.
How can I tell it to build the classpath and run the test without the
OSGi launcher?
Regards,
-----Original Message-----
From: tycho-user-bounces@xxxxxxxxxxx
[mailto:tycho-user-bounces@xxxxxxxxxxx] On Behalf Of Aaron Digulla
Sent: Donnerstag, 15. März 2012 12:35
To: Tycho user list
Subject: [tycho-user] Problem loading resources from classpath in tests
Hello,
I have a test case which needs the resource
"classpath:/com/pany/eclipse/i18n_dsl/tests/Application.i18n"
In the code in
org.eclipse.xtext.resource.ClassloaderClasspathUriResolver, this is
truncated to "com/pany/eclipse/i18n_dsl/tests/Application.i18n" and
then passed off to the OSGi classloader. I verified that
target/classes/com/pany/eclipse/i18n_dsl/tests/Application.i18n exists.
The tests pass when run from inside Eclipse.
Why can't Tycho Surefire 0.13.0 load the resource?
Regards,
--
Aaron "Optimizer" Digulla a.k.a. Philmann Dark
"It's not the universe that's limited, it's our imagination.
Follow me and I'll show you something beyond the limits."
http://www.pdark.de/ http://blog.pdark.de/
_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user
_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user
--
Aaron "Optimizer" Digulla a.k.a. Philmann Dark
"It's not the universe that's limited, it's our imagination.
Follow me and I'll show you something beyond the limits."
http://www.pdark.de/ http://blog.pdark.de/