Skip to content
This repository was archived by the owner on Apr 25, 2024. It is now read-only.

Latest commit

 

History

History
39 lines (27 loc) · 1.61 KB

File metadata and controls

39 lines (27 loc) · 1.61 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> :test <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.

Tip: Examining the output of the following command with a checkout of clojure-android/neko may give an example of a fully spelled out invocation:

DEBUG=1 lein with-profile local-repl droid local-test

License

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