Skip to content
Newer
Older
100644 89 lines (55 sloc) 2.06 KB
04e8a2d @marick First source
marick authored
1 This plugin runs both
2 [Midje](https://github.com/marick/Midje) and clojure.test
125a82c @AlexBaranosky change version to 2.0.0-SNAPSHOT and updated readme
AlexBaranosky authored
3 tests. It has been tested with Leiningen 1.5.2, 1.6.1, 1.6.2 and 2 preview2. It
51f4dc2 @marick Added comment about uninstallation of earlier version
marick authored
4 works with Clojure 1.2.0, 1.2.1, and 1.3.0.
2fbe9c4 @marick Better documentation.
marick authored
5
04e8a2d @marick First source
marick authored
6
7 Installation
8 ==========
9
10 `lein-midje` is available as a plugin:
11
125a82c @AlexBaranosky change version to 2.0.0-SNAPSHOT and updated readme
AlexBaranosky authored
12 $ lein plugin install lein-midje 1.0.9 ;; Leiningen 1
13
14 $ lein plugin install lein-midje 2.0.0-SNAPSHOT ;; Leiningen 2
04e8a2d @marick First source
marick authored
15
51f4dc2 @marick Added comment about uninstallation of earlier version
marick authored
16 [Note: for reasons unknown, you may need to first uninstall
17 earlier versions.]
18
9f57bb8 @marick Typo
marick authored
19 Or you can include it in your `project.clj`:
5cc3f2a @marick Update README
marick authored
20
125a82c @AlexBaranosky change version to 2.0.0-SNAPSHOT and updated readme
AlexBaranosky authored
21 :dev-dependencies [[lein-midje "1.0.9"]])
5cc3f2a @marick Update README
marick authored
22
23
24 Use
04e8a2d @marick First source
marick authored
25 ==========
26
5cc3f2a @marick Update README
marick authored
27 To run all the tests, and check all the facts, in both the
28 `test` and `src` directories, type this:
29
30 $ lein midje
04e8a2d @marick First source
marick authored
31
5cc3f2a @marick Update README
marick authored
32 You can also run individual namespaces by adding them to the
33 command line:
04e8a2d @marick First source
marick authored
34
5cc3f2a @marick Update README
marick authored
35 $ lein midje life.core life.timecop
04e8a2d @marick First source
marick authored
36
d3f373e @marick 1.0.6 adds MIDJE_COLORIZE=reverse
marick authored
37 You can use a wildcard to specify a subset of namespaces:
c5b0a92 @marick Commentary on previous pull request.
marick authored
38
39 $ lein midje 'midje.ideas.*'
40
41 This will run all the tests in that namespace and ones
42 recursively included within it.
43
72ff513 @marick Merge pull request #6 from AlexBaranosky/master
marick authored
44 To run `lein-midje` as a watcher process that reloads any
45 changed test files, use this:
46
47 $ lein midje --lazytest
48
1229cfe @marick More documentation.
marick authored
49 This requires that the
bb4a2e0 @sritchie Update README.md
sritchie authored
50 [lazytest](https://github.com/stuartsierra/lazytest)
5cff581 @marick Another doc tweak
marick authored
51 dependency be included in your `project.clj` file, as in:
1229cfe @marick More documentation.
marick authored
52
bb4a2e0 @sritchie Update README.md
sritchie authored
53 [com.stuartsierra/lazytest "1.2.3"]
54
55 You'll also need to add Stuart Sierra's maven repo to your `project.clj`, like so:
56
57 :repositories {"stuart" "http://stuartsierra.com/maven2"}
d3f373e @marick 1.0.6 adds MIDJE_COLORIZE=reverse
marick authored
58
59 Environment Variables
60 ==============
61
da010cd @marick Add note about Windows.
marick authored
62 On Unix systems, colorizing of results is turned on by default. It can be
d3f373e @marick 1.0.6 adds MIDJE_COLORIZE=reverse
marick authored
63 turned off with
64
65 $ export MIDJE_COLORIZE=false
66
da010cd @marick Add note about Windows.
marick authored
67 Colorizing is off by default on Windows systems. It can be
68 turned on with:
69
70 $ export MIDJE_COLORIZE=true
71
d3f373e @marick 1.0.6 adds MIDJE_COLORIZE=reverse
marick authored
72 Coloring is most readable with light text against a dark
b84d9c7 @marick Bump stable version to 1.0.7
marick authored
73 background. If you use dark text against a light background,
74 you might prefer this:
d3f373e @marick 1.0.6 adds MIDJE_COLORIZE=reverse
marick authored
75
76 $ export MIDJE_COLORIZE=reverse
2a65e2d @AlexBaranosky restructuring of newly contributed code.
AlexBaranosky authored
77
b84d9c7 @marick Bump stable version to 1.0.7
marick authored
78 It colors the background instead of the letters.
79
3b31ad8 @marick Bump to 1.0.4
marick authored
80 Contributors
81 ==========
82
72ff513 @marick Merge pull request #6 from AlexBaranosky/master
marick authored
83 * Alex Baranosky
4405b9a @marick Fixed list in README
marick authored
84 * Andreas Wurzer
85 * Brian Marick
865c5bc @AlexBaranosky Added contributor to README.md
AlexBaranosky authored
86 * Dmitri Naumov
7b3a919 @AlexBaranosky upped version # and added Sam Richie to contributors list for his wor…
AlexBaranosky authored
87 * Sam Richie
865c5bc @AlexBaranosky Added contributor to README.md
AlexBaranosky authored
88 * Teemu Antti-Poika
Something went wrong with that request. Please try again.