Skip to content

Commit

Permalink
Fix for throwable handling
Browse files Browse the repository at this point in the history
  • Loading branch information
ajoberstar committed Feb 26, 2018
1 parent e4720df commit 1de08f6
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
(execute-node child listener))))
(catch Throwable e
(test/do-report {:type :error :message "Uncaught exception, in fixtures." :expected nil :actual e}))))
(.executionFinished listener descriptor (result *throwables*))))
(.executionFinished listener descriptor (result @*throwables*))))

(defmulti jovial-report :type)

Expand Down
2 changes: 1 addition & 1 deletion sample-junit-console/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ repositories {

dependencies {
compile 'org.junit.platform:junit-platform-console:1.1.0'
compile 'org.ajoberstar.jovial:jovial-engine-clojure.test:0.2.0-rc.2'
compile 'org.ajoberstar.jovial:jovial-engine-clojure.test:0.2.0'
}
3 changes: 2 additions & 1 deletion sample-junit-gradle/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,14 @@ repositories {
name = 'ajoberstar'
url = 'https://dl.bintray.com/ajoberstar/maven'
}
mavenLocal()
}
}

dependencies {
compile 'org.clojure:clojure:1.8.0'
testCompile 'junit:junit:4.12'
testRuntime 'org.ajoberstar.jovial:jovial-engine-clojure.test:0.2.0-rc.2'
testRuntime 'org.ajoberstar.jovial:jovial-engine-clojure.test:0.2.0'
testRuntime 'org.junit.vintage:junit-vintage-engine:5.1.0'
}

Expand Down
7 changes: 7 additions & 0 deletions sample-junit-gradle/src/test/resources/sample/core_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,10 @@

(deftest my-sample-fails
(is (= 5 (+ 2 2))))

(deftest multiple-fails
(testing "this is a set of stuff"
(is (= 4 (* 2 2)))
(is (= 5 (* 2 2))))
(testing "second set of stuff"
(is (= 6 (* 2 4)) "This isn't true")))
2 changes: 1 addition & 1 deletion sample-junit-maven/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
<dependency>
<groupId>org.ajoberstar.jovial</groupId>
<artifactId>jovial-engine-clojure.test</artifactId>
<version>0.2.0-rc.2</version>
<version>0.2.0</version>
</dependency>
</dependencies>
<configuration>
Expand Down

0 comments on commit 1de08f6

Please sign in to comment.