Hi JB,
I think the reason for the ClassNotfoundException is because the TestFX-core
bundle is not resolved - see line 2825 of the log:
Unresolved requirements: [[org.testfx.core [10](R 10.0)] osgi.wiring.package;
(osgi.wiring.package=com.sun.glass.ui)]
TestFx is OSGi compatible so not using Dynamic Package. The package
com.sun.glass.ui is an internal package and I make it available by modifying
the Karaf config.properties:
https://github.com/jtkb/flexfx/blob/master/it/tests/src/test/resources/etc/config.properties
this is a very strange issue because the same integration tests run OK on my
local dev machine.. for some reason my config.properties isn't being applied
when in Travis? (guessing here).
Kerry
On 07/01/18 19:43, Jean-Baptiste Onofré wrote:
Hi Kerry,
I never used Travis with Karaf (we are using Jenkins for the itests).
However, your issue doesn't look related to Travis.
I can see java.lang.ClassNotFoundException: org.testfx.osgi.service.TestFx in
the log. I think you are using Dynamic Package. Can you check that the bundle
providing the org.testfx.osgi.service package is part of startup.properties ?
Regards
JB
On 01/07/2018 06:41 PM, JT wrote:
Hi,
I'm trying to set up Travis CI for my GitHub project. I have some integration
tests using PAX exam and execute these in a Karaf instance. I use a modified
config.properties file which adds the package'com.sun.glass.ui' to the
'org.osgi.framework.system.packages.extra'property. When I run the integration
tests locally there are issue.
When the integration tests are run on Travis, they fail because the package
com.sun.glass.ui is not exported:
https://travis-ci.org/jtkb/flexfx
Does anyone have experience of using Travis CI and configuring Karaf to run in
it or any idea why the config.properties is not being applied?
Thanks, Kerry.