anonymous wrote :
| I can't run tests from inside eclipse without modifying it and I'm going to
| forget to revert it from time to time on commits.
|
In every projects pom there is a comment that tells you what properties to set in the
eclipse test configurations to achieve the same runtime behaviour as from the command
line.
For the Framework that would be
| -Dlog4j.output.dir=${workspace_loc:jboss-osgi-framework/target}
| -Dorg.jboss.osgi.framework.launch.bootstrapPath=bootstrap/jboss-osgi-bootstrap.xml
|
This is needed because the system properties that are defined on the surefire plugin are
unfortunately not used by the eclipse test runs, which is a general problem that applies
to all system properties that should be available at test runtime.
I've seen test cases that duplicate the settings from the pom and hard code them into
the test. This IMHO is not so good. Instead system properties should go into the eclipse
test configuration.
I also run tests from eclipse on a daily basis, once the props are set in eclipse its
should be all good.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4265977#...
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&a...