android-plugin icon indicating copy to clipboard operation
android-plugin copied to clipboard

InstrumentationRunner & test parser key

Open charroch opened this issue 12 years ago • 2 comments

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))}

charroch avatar May 01 '12 18:05 charroch

any pull on this one?

charroch avatar May 17 '12 16:05 charroch

for now i've implemented (some) of this by checking the manifest file: jberkel/android-plugin@84d9e1b6cd00164051c31eb98d1d17fde9f60288

jberkel avatar Jun 24 '12 20:06 jberkel