All Projects → lein-junit → lein-junit

lein-junit / lein-junit

Licence: other
Leiningen plugin for running JUnit tests.

Programming Languages

clojure
4091 projects

Projects that are alternatives of or similar to lein-junit

doc
QuickPerf documentation: https://github.com/quick-perf/doc/wiki/QuickPerf
Stars: ✭ 22 (-18.52%)
Mutual labels:  junit-test
jasmine-junit-runner
A custom JUnit Java Runner annotation to run headless Javascript tests embedded in your IDE
Stars: ✭ 52 (+92.59%)
Mutual labels:  junit-test
rules4android
A collection of JUnit 4 Rules for Android Developers 🔬
Stars: ✭ 23 (-14.81%)
Mutual labels:  junit-test
AndroidMVPArchitecture
Android MVP architecture sample project with or without RxJava and Dagger2 and Kotlin
Stars: ✭ 78 (+188.89%)
Mutual labels:  junit-test
junit-contracts
Contract test suite runner
Stars: ✭ 16 (-40.74%)
Mutual labels:  junit-test
scalatest-junit-runner
JUnit 5 runner for Scalatest
Stars: ✭ 30 (+11.11%)
Mutual labels:  junit-test
timber-junit-rule
A highly configurable JUnit Rule that outputs Timber logs to standard output
Stars: ✭ 42 (+55.56%)
Mutual labels:  junit-test

LEIN-JUNIT Build Status

A Leiningen plugin that runs Java tests via JUnit.

Installation

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

Configuration

The following options are accepted in defproject:

  • :junit-formatter: keyword or string arg, can be :brief (default), :plain, :xml, or :summary
  • :junit-results-dir: output folder for test results. If unset, outputs to standard out
  • :junit-test-file-pattern: regex pattern used to match tests. Defaults to #".*Test\.java"

These arguments are acceptable on the CLI as well, and can be given with or without the leading ":".

Example Configuration

(defproject sample-project "0.0.1-SNAPSHOT"
  :min-lein-version "2.0.0"
  :dependencies [[org.clojure/clojure "1.6.0"]]
  :profiles {:dev {:dependencies [[junit/junit "4.11"]]}}
  :plugins [[lein-junit "1.1.9-SNAPSHOT"]]
  :source-paths ["src/clojure"]
  :java-source-paths ["src/java" "test/java"]
  :junit ["test/java"]
  :junit-formatter :plain
  :junit-results-dir "test-results"
  :jvm-opts ["-XX:MaxPermSize=128m"])

Usage

Run all junit tests.

lein junit

Run all junit tests matching a pattern.

lein junit com.example

Run all junit tests matching a paterrn, outputting XML results to "test-results/"

lein junit :junit-formatter xml :junit-results-dir test-results com.example

License

Copyright (C) 2013-2015 Florian Ebeling, Roman Scherer

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].