Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

rename runTest to testEmulator/testDevice

  • Loading branch information...
commit caee028bd30c6ef4eb32e7d56ee3c86f08c040b9 1 parent cdc3e86
@jberkel authored
Showing with 5 additions and 3 deletions.
  1. +5 −3 src/main/scala/AndroidTestProject.scala
View
8 src/main/scala/AndroidTestProject.scala
@@ -2,7 +2,9 @@ import sbt._
abstract class AndroidTestProject(info: ProjectInfo) extends AndroidProject(info) {
override def proguardInJars = Path.emptyPathFinder
-
- lazy val runTest = runTestAction
- def runTestAction = adbTask(true, "shell am instrument -w "+manifestPackage+"/android.test.InstrumentationTestRunner") describedAs("runs instrumentation tests")
+
+ lazy val testEmulator = instrumentationTestAction(true) describedAs("runs tests in emulator")
+ lazy val testDevice = instrumentationTestAction(false) describedAs("runs tests on device")
+
+ def instrumentationTestAction(emulator:Boolean) = adbTask(emulator, "shell am instrument -w "+manifestPackage+"/android.test.InstrumentationTestRunner") describedAs("runs instrumentation tests")
}
Please sign in to comment.
Something went wrong with that request. Please try again.