Skip to content

Commit 1de08f6

Browse files
committed
Fix for throwable handling
1 parent e4720df commit 1de08f6

File tree

5 files changed

+12
-4
lines changed

5 files changed

+12
-4
lines changed

jovial-engine-clojure.test/src/main/clojure/org/ajoberstar/jovial/engine/clojure_test.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
(execute-node child listener))))
8383
(catch Throwable e
8484
(test/do-report {:type :error :message "Uncaught exception, in fixtures." :expected nil :actual e}))))
85-
(.executionFinished listener descriptor (result *throwables*))))
85+
(.executionFinished listener descriptor (result @*throwables*))))
8686

8787
(defmulti jovial-report :type)
8888

sample-junit-console/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@ repositories {
1717

1818
dependencies {
1919
compile 'org.junit.platform:junit-platform-console:1.1.0'
20-
compile 'org.ajoberstar.jovial:jovial-engine-clojure.test:0.2.0-rc.2'
20+
compile 'org.ajoberstar.jovial:jovial-engine-clojure.test:0.2.0'
2121
}

sample-junit-gradle/build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,14 @@ repositories {
1717
name = 'ajoberstar'
1818
url = 'https://dl.bintray.com/ajoberstar/maven'
1919
}
20+
mavenLocal()
2021
}
2122
}
2223

2324
dependencies {
2425
compile 'org.clojure:clojure:1.8.0'
2526
testCompile 'junit:junit:4.12'
26-
testRuntime 'org.ajoberstar.jovial:jovial-engine-clojure.test:0.2.0-rc.2'
27+
testRuntime 'org.ajoberstar.jovial:jovial-engine-clojure.test:0.2.0'
2728
testRuntime 'org.junit.vintage:junit-vintage-engine:5.1.0'
2829
}
2930

sample-junit-gradle/src/test/resources/sample/core_test.clj

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,10 @@
66

77
(deftest my-sample-fails
88
(is (= 5 (+ 2 2))))
9+
10+
(deftest multiple-fails
11+
(testing "this is a set of stuff"
12+
(is (= 4 (* 2 2)))
13+
(is (= 5 (* 2 2))))
14+
(testing "second set of stuff"
15+
(is (= 6 (* 2 4)) "This isn't true")))

sample-junit-maven/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
<dependency>
7878
<groupId>org.ajoberstar.jovial</groupId>
7979
<artifactId>jovial-engine-clojure.test</artifactId>
80-
<version>0.2.0-rc.2</version>
80+
<version>0.2.0</version>
8181
</dependency>
8282
</dependencies>
8383
<configuration>

0 commit comments

Comments
 (0)