Skip to content

Commit fc0203a

Browse files
committed
Merge branch 'junit-xml-test-results'
2 parents 3ae9101 + b28297f commit fc0203a

File tree

5 files changed

+15
-3
lines changed

5 files changed

+15
-3
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ pom.xml.asc
1111
.hg/
1212
doc/api
1313
test/debug.log
14+
test/junit.xml

circle.yml

+7
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@ machine:
22
java:
33
version: oraclejdk8
44

5+
test:
6+
post:
7+
- mkdir -p ${CIRCLE_TEST_REPORTS}/lein-test:
8+
parallel: true
9+
- cp test/junit.xml ${CIRCLE_TEST_REPORTS}/lein-test/${CIRCLE_NODE_INDEX}.xml:
10+
parallel: true
11+
512
deployment:
613
all:
714
branch: /.*/

project.clj

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
[net.n01se/clojure-jna "1.0.0"]
1212
[robert/hooke "1.3.0"]]
1313
:profiles {:dev {:plugins [[lein-codox "0.9.1"]]}
14-
:test {:jvm-opts ["-Djava.util.logging.config.file=test/logging.properties"]}}
14+
:test {:dependencies [[clojure-test-junit-output "0.1.3"]]
15+
:jvm-opts ["-Djava.util.logging.config.file=test/logging.properties"]}}
1516
:deploy-repositories ^:replace [["clojars" {:url "https://clojars.org/repo"
1617
:username [:gpg :env/clojars_username]
1718
:password [:gpg :env/clojars_password]

test/clj_libssh2/test_ssh.clj

+2-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,8 @@
9696
(swap! output conj (String. b off len))))
9797
run-exec (future
9898
(try
99-
(ssh/exec {:port 2222
99+
(ssh/exec {:blocking-timeout 5000
100+
:port 2222
100101
:read-timeout 5000}
101102
(str "tail -F " tempfile)
102103
:out streaming-reader)

test/clj_libssh2/test_utils.clj

+3-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
(:require [clojure.java.shell :as sh]
33
[clojure.string :as str]
44
[clojure.test :as test]
5+
[clojure-test-junit-output.core :refer [with-junit-output]]
56
[net.n01se.clojure-jna :as jna]
67
[clj-libssh2.logging :as logging])
78
(:import [java.io File]))
@@ -60,7 +61,8 @@
6061
(defn fixtures
6162
[]
6263
(test/use-fixtures :once (test/join-fixtures
63-
[with-sandbox-sshd
64+
[(with-junit-output "test/junit.xml")
65+
with-sandbox-sshd
6466
with-really-verbose-logging])))
6567

6668
(defmacro with-temp-file

0 commit comments

Comments
 (0)