scala - Using ScalaTest with SBT android-sdk-plugin -


i'm trying use sbt android-sdk-plugin , scalatest, have no success.

i run test command in sbt console, didn't find scalatest test suite in src/test/scala folder.

i got following output sbt, seems didn't run scalatest test suite @ all.

[info] compiling 2 scala sources , 3 java sources /home/brianhsu/androidproject/findlost/target/android-bin/classes... [info] packaging /home/brianhsu/androidproject/findlost/target/android-bin/classes.jar ... [info] done packaging. [info] packaging /home/brianhsu/androidproject/findlost/target/scala-2.10/findlost_2.10-0.1-snapshot-tests.jar ... [info] done packaging. [info] run completed in 44 milliseconds. [info] total number of tests run: 0 [info] suites: completed 0, aborted 0 [info] tests: succeeded 0, failed 0, canceled 0, ignored 0, pending 0 [info] no tests executed. [info] no tests run test:test 

the following how create project:

  1. using android create project -g create android project gradle layout.

  2. add addsbtplugin("com.hanhuy.sbt" % "android-sdk-plugin" % "1.2.11") project/plugins.sbt include android-sdk-plugin project.

  3. add scalatest librarydependencies setting in build.sbt, makes build file looks following:

    import android.keys._  android.plugin.androidbuild  name := "findlost"  scalaversion := "2.10.4"  organization := "org.bone.findlost"  librarydependencies += "org.scalatest" % "scalatest_2.10" % "2.1.0" % "test"  platformtarget in android := "android-19"  run <<= run in android  install <<= install in android 
  4. add scalatest test case src/test/scala, contains example test suite quickstart page of scalatest.

place tests in src/androidtest/scala

the android-sdk-plugin uses androidtest both android instrumentation tests regular tests.

see ordinary scalatests not found src/test #45 discussion on topic. note, since discussion plugin changed directory has changed path listed.


Comments

Popular posts from this blog

user interface - How to replace the Python logo in a Tkinter-based Python GUI app? -

objective c - Greedy NSProgressIndicator Allocation -

how to set an OCR language in Google Drive -