/lein-junit

Leiningen plugin for running JUnit tests.

Primary LanguageClojure

LEIN-JUNIT

A Leiningen plugin that runs Java tests via JUnit.

Installation

Via Clojars: http://clojars.org/lein-junit

Example Configuration

(defproject sample-project "0.0.1-SNAPSHOT"
  :min-lein-version "2.0.0"
  :dependencies [[org.clojure/clojure "1.4.0"]]
  :profiles {:dev {:dependencies [[junit/junit "4.10"]]}}
  :plugins [[lein-junit "1.0.2-SNAPSHOT"]]
  :source-paths ["src/clojure"]
  :java-source-paths ["src/java" "test/java"]
  :junit ["test/java"]
  :jvm-opts ["-XX:MaxPermSize=128m"])

Usage

Run all junit tests.

lein junit

Run all junit tests matching a pattern.

lein junit com.example

License

Copyright (C) 2013 Florian Ebeling, Roman Scherer

Distributed under the Eclipse Public License, the same as Clojure.