Adding specific instrumentation runner #127

Closed
wants to merge 10 commits into
from

2 participants

@charroch

The ability to create your own runners:

in manifest:

    <instrumentation
        android:label="Tests" android:targetPackage="novoda.widget.tests"
        android:name="org.scalatest.tools.SpecRunner" />

in build.sbt:

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

I was thinking taking the name as task key from manifest but yield in complexity.

@jberkel
Owner

hey carl, any chance you could rebase this against the current master ? it cannot be merged cleanly at the moment.

@charroch charroch Merge remote-tracking branch 'jan/master'
Conflicts:
	src/main/scala/AndroidTest.scala
8714d84
@charroch

Could you try now? I lost my specs output because of the ITestListener... I might play with the latest plugin a bit more.

For info, I am using scalatest precompiled and installed on device will using the following runner:
https://gist.github.com/2405203

Either you can merge the changes or wait and I ll push new changes to ensure you only parse test results for unit tests

@jberkel
Owner

it then might make sense to only use ITestListener when the standard runner is used i guess.

@charroch

previously I just logged the output of ADB. I ll need to revisit.

@jberkel
Owner

maybe you can make your scala testrunner produce some output compatible with google's ? then only one testlistener would be required.

@charroch
@jberkel jberkel closed this Apr 17, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment