Skip to content

Commit 2b5344a

Browse files
committed
Merge pull request #2 from pranaypareek/master
updates project to use test2junit for reporting test results
2 parents 86dedde + 6150d64 commit 2b5344a

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

sample/project.clj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@
66
:dependencies [[org.clojure/clojure "1.5.1"]]
77
:main ^:skip-aot sample.core
88
:target-path "target/%s"
9-
:profiles {:uberjar {:aot :all}})
9+
:profiles {:dev {:plugins [[test2junit "1.1.1"]]}}
10+
:test2junit-output-dir "../shippable/testresults")

sample/test/sample/core_test.clj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,6 @@
55
(deftest a-test
66
(testing "Simple addition"
77
(is (= 15 (-main 5)))))
8+
9+
(deftest add-1-to-1
10+
(is (= 2 (+ 1 1))))

shippable.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ before_script:
1212
# Running the test with Leiningen
1313
script:
1414
- cd sample
15-
- lein test
15+
- lein test2junit

0 commit comments

Comments
 (0)