Looking at the plugin docs and the source code I can't see a way to pass
properties to the executed tests. Ideally one should be able to write
mvn test -Dfoo=bar
and be able to access $foo from within the test code, even if (because the JVM
that actually runs the test is forked) I have to write in my POM
<configuration>
<systemPropertyVariables>
<foo>${foo}</foo>
</systemPropertyVariables>
</configuration>
to have the properties be given to the forked JVM.
The acceptance tests I'm writing use Selenium to access web content; being able
to extract the host/port to properties for use locally or in a CI environment
would be very handy.
Original issue reported on code.google.com by kierans...@gmail.com on 24 Mar 2011 at 5:39
Original issue reported on code.google.com by
kierans...@gmail.com
on 24 Mar 2011 at 5:39