jberkel/android-plugin — pull request #128 by charroch (2012-05-01 18:23:44+00:00)
Title: InstrumentationRunner & test parser key

Jan, I updated the parsing so one could accommodate any parser. It is quite rough at the moment and I intend to rework quite a bit the entire adb logic - relaying on Device rather then processes to run commands. I rather merge with your branch to ensure we are on the same line.

Could you double check it it working as expected on your end. It seems to work fine on mine.

To add specific runner:

instrumentationRunner in Android := "org.scalatest.tools.SpecRunner",

to add specific parser

testOutputParser in Android <<= streams map { (s: TaskStreams) =>Some(scalaTestLogger(s.log)) },

with scalaTestLogger logging all output to logger:

def scalaTestLogger(s:Logger): AndroidTest.TestParser = { i => s.info(IO.readStream(i))}