-
Notifications
You must be signed in to change notification settings - Fork 0
/
project.clj
79 lines (79 loc) · 4.28 KB
/
project.clj
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
(defproject eg "0.5.6-alpha"
:description "eg delivers clojure.test function tests with conciseness."
:license {:name "The MIT License"
:url "https://github.com/ccfontes/eg/blob/master/LICENSE.md"}
:url "https://github.com/ccfontes/eg"
:scm {:name "git"
:url "https://github.com/ccfontes/eg"}
:jar-name "eg.jar"
:jar-exclusions [#"\.swp|\.swo|\.DS_Store"]
:source-paths ["src"]
:test-paths ["test/pass" "test/fail"]
:repositories [["releases" {:url "https://repo.clojars.org"
:creds :gpg}]]
:aliases {"clj-test-pass-unit" ["test" "eg.test.pass.unit"]
"cljs-test-pass-unit" ["with-profiles" "+cljs-test-pass-unit" "cljsbuild" "test"]
"clj-test-pass-integration" ["test" "eg.test.pass.integration"]
"cljs-test-pass-integration" ["with-profiles" "+cljs-test-pass-integration" "cljsbuild" "test"]
"clj-test-fail" ["test" "eg.test.fail"]
"cljs-test-fail" ["with-profiles" "+cljs-test-fail" "cljsbuild" "test"]
"coverage" ["with-profiles" "+cloverage" "cloverage" "--codecov"]}
:plugins [[lein-cljsbuild "1.1.7"] [lein-tach "1.0.0"]]
:dependencies [[org.clojure/tools.namespace "0.3.0-alpha4"]
[org.clojure/clojure "1.10.0" :scope "provided"]
; clojurescript not provided, otherwise Clojure programs would
; need to include clojurescript in their dependencies in order
; to not break 'eg.report.cljs.clj'
[org.clojure/clojurescript "1.10.520"]]
:repl-options {:init (clojure.tools.namespace.repl/refresh)
:welcome (do (println "To refresh all namespaces, run: (refresh)")
(println "To run all tests, run: (run-tests)"))}
:tach {:test-runner-ns eg.test.pass.runner
:source-paths ["src" "test/pass"]
:force-non-zero-exit-on-test-failure? true}
:profiles
{:repl {:source-paths ["repl"]}
:dev {:dependencies [[pjstadig/humane-test-output "0.9.0"]]
:injections [(require 'pjstadig.humane-test-output)
(pjstadig.humane-test-output/activate!)]}
:cloverage {:plugins [[lein-cloverage "1.1.1"]]
:cloverage {:test-ns-regex [#"^eg\.test\.pass\.unit$"
#"^eg\.test\.pass\.integration$"]}}
:cljs-test-pass-unit
{:cljsbuild
{:test-commands {"pass-unit-node" ["node" "target/out/test/pass/unit/runner.js"]}
:builds
{:test
{:source-paths ["src" "test/pass"]
:compiler {:target :nodejs
:main eg.test.pass.unit.runner
:output-to "target/out/test/pass/unit/runner.js"
:output-dir "target/out/test/pass/unit"
:optimizations :none
:source-map true
:warnings {:single-segment-namespace false}}}}}}
:cljs-test-pass-integration
{:cljsbuild
{:test-commands {"pass-integration-node" ["node" "target/out/test/pass/integration/runner.js"]}
:builds
{:test
{:source-paths ["src" "test/pass"]
:compiler {:target :nodejs
:main eg.test.pass.integration.runner
:output-to "target/out/test/pass/integration/runner.js"
:output-dir "target/out/test/pass/integration"
:optimizations :none
:source-map true
:warnings {:single-segment-namespace false}}}}}}
:cljs-test-fail
{:cljsbuild
{:test-commands {"fail-node" ["node" "target/out/test/fail/runner.js"]}
:builds
{:test
{:source-paths ["src" "test/fail"]
:compiler {:target :nodejs
:main eg.test.fail.runner
:output-to "target/out/test/fail/runner.js"
:output-dir "target/out/test/fail"
:optimizations :none
:warnings {:single-segment-namespace false}}}}}}})