Skip to content

Latest commit

 

History

History
33 lines (23 loc) · 1.34 KB

README.org

File metadata and controls

33 lines (23 loc) · 1.34 KB

droid-test

Droid-test is a small utility library that facilitates testing in Clojure-Android projects. It uses Robolectric to locally run tests that interoperate with Android classes.

Droid-test currently provides support for the following Clojure testing libraries:

Usage

The simplest was to use droid-test is from lein-droid. The tutorial is coming soon.

It is also possible to use droid-test manually. You have to issue the following shell command:

java coa.droid_test.internal.TestRunner -mode <mode> <list-of-test-namespaces>

`<mode>` should be either `clojuretest`, `expectations` or `speclj`. If `-mode` option is not provided, `clojuretest` is assumed. List of test namespaces should be separated by space. It goes without saying that Clojure, Robolectric, JUnit, droid-test, and test namespaces themselves should be on the classpath for this command to work.

License

Copyright © 2015 Alexander Yakushev. Distributed under the Eclipse Public License, the same as Clojure. See the file LICENSE.