Skip to content

Commit 7ebe399

Browse files
cichlibbatsov
authored andcommitted
Consolidate Cloverage config into project.clj
1 parent 76b2d83 commit 7ebe399

File tree

2 files changed

+7
-10
lines changed

2 files changed

+7
-10
lines changed

Makefile

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,8 @@ eastwood:
2121
cljfmt:
2222
lein with-profile +$(CLOJURE_VERSION),+cljfmt cljfmt check
2323

24-
25-
# Cloverage can't handle some of the code in this project. For now we
26-
# must filter problematic namespaces (`-e`) and tests (`-t`) from
27-
# instrumentation. Note: this means for now coverage reporting isn't
28-
# exact. See issue #457 for details.
29-
3024
cloverage:
31-
lein with-profile +$(CLOJURE_VERSION),+cloverage cloverage --codecov \
32-
-e ".*util.instrument" \
33-
-t "^((?!debug-integration-test).)*$$"
25+
lein with-profile +$(CLOJURE_VERSION),+cloverage cloverage
3426

3527
install: .source-deps
3628
lein with-profile +$(CLOJURE_VERSION),+plugin.mranderson/config install

project.clj

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,12 @@
114114
:sysutils {:plugins [[lein-sysutils "0.2.0"]]}
115115

116116
:cloverage [:test
117-
{:plugins [[lein-cloverage "1.0.13"]]}]
117+
{:plugins [[lein-cloverage "1.0.13"]]
118+
:cloverage {:codecov? true
119+
;; Cloverage can't handle some of the code
120+
;; in this project; see issue #457
121+
:ns-exclude-regex [#".*util.instrument"]
122+
:test-ns-regex [#"^((?!debug-integration-test).)*$$"]}}]
118123

119124
:cljfmt [:test
120125
{:plugins [[lein-cljfmt "0.6.1"]]

0 commit comments

Comments
 (0)