This repository was archived by the owner on Oct 26, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 108
Building Android Test Projects
glenviewjeff edited this page Nov 25, 2011
·
17 revisions
Put your Android test code in {project dir}/tests/src/main/(scala, java, AndroidManifest.xml, assets, res, etc.) To build the tests, use sbt tests/android:package-debug
Edit your project/build.scala to add the following missing lines as needed:
...
settings = General.settings ++ AndroidTest.androidSettings ++ Seq(
name := "MyScalaProjectTest", // You need to name your test project differently to avoid a circular dependency error
libraryDependencies += "com.jayway.android.robotium" % "robotium-solo" % "2.4", // If you're using Robotium
libraryDependencies += "junit" % "junit" % "3.8.2", // If you're using Junit
...
) dependsOn main
- Getting started
- Scala versions
- Android Manifest generation
- Typed resources references
- ProGuard
- DDMS integration
- Building Java Android projects
- Building NDK projects
- Consuming Android Library projects
- Github integration
- Building Android Test Projects
- Password Manager
- Releasing to the Android Market
- Projects using sbt-android-plugin
- Contributors