views:

149

answers:

3

I have an Android test project that I'd like to link into Hudson, but I haven't found a way to output the test results as XML instead of text. Does anyone know if there's an easy way to do this already?

-Dan

A: 

As another follow-up, I've come up with a "decent" solution. When running my instrumentation tests, I had to use the '-r' option (e.g. adb shell am instrument -w -r com.myApp/android.test.InstrumentationTestRunner > tests-out.txt) and write my own parser to convert the output into XML format accepted by Hudson.

It isn't perfect as it doesn't provide timing, nor does it provide log output messages, but at least I now have Hudson reporting on my Android tests.

Dan Watling
A: 

FYI, for anyone else who happens to stumble on this question. I've created a new TestRunner that you can use in your Android test projects that will output your test results in XML readable by Hudson (and probably any other CI app). You can read about it here: http://droiddudes.com/2010/04/07/athenatestrunner/ or just grab it from here: http://github.com/dwatling/athena

Dan Watling