jberkel / android-plugin

An sbt plugin for Android development in Scala
https://groups.google.com/forum/#!forum/scala-on-android
Other
476 stars 113 forks source link

InstrumentationRunner & test parser key #128

Open charroch opened 12 years ago

charroch commented 12 years ago

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 commented 12 years ago

any pull on this one?

jberkel commented 12 years ago

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