Ideally test-debug should be the target name instead of test..... way
more convenient IMHO :)
Jesus Rodriguez wrote:
On Tue, Feb 03, 2009 at 05:35:58PM -0500, Jason Dobies wrote:
I'm not sure how others do it (or if this is commonly known), but I was
looking to attach a debugger to ant as it runs my test cases. Putting
the following lines into the java/buildconf/build-utils.xml file in the
junit task (roughly line 77) sets the tests to suspend until the
debugger is attached.
<jvmarg value="-Xdebug"/>
<jvmarg
value="-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005"/>
I'd like to look into a set up where we can do something like:
ant -Dtestcase=foo -Dtestdebug test
But the junit task doesn't support my first idea for how to do that, so
it's gonna take a bit more looking.
I just added it but you have to do -Dtestdebug=true. I couldn't
get it to work with just -Dtestdebug :)
_______________________________________________
Spacewalk-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/spacewalk-devel