-
Notifications
You must be signed in to change notification settings - Fork 10
test2junit 1.3.2 breaks when reflection warnings printed during test execution #14
Copy link
Copy link
Open
Description
clj-assorted-util does not provide an implementation of the 3-arity method of java.io.StringWriter. Any tests which cause warnings to be printed by the clojure compiler at runtime might cause test2junit to fail.
- see sample project for minimal reproducible error case
- consider Capture compiler output in with-err-str-cb clj-assorted-utils#1 which intends to fix this issue.
example error output
As produced by sample project:
Writing output to: test2junit
Testing: t2j-err.core-test
Running tests in: t2j-err.core-test
Running test: #'t2j-err.core-test/a-test-creates-reflection-warning
ERROR
Message: clojure.lang.ArityException: Wrong number of args (4) passed to: core/apply-junit-output-hook/fn--253/fn--254, compiling:((...)/form-init4255135209920479730.clj:6:21)
Cause: #error {
:cause Wrong number of args (4) passed to: core/apply-junit-output-hook/fn--253/fn--254
:via
[{:type clojure.lang.ArityException
:message Wrong number of args (4) passed to: core/apply-junit-output-hook/fn--253/fn--254
:at [clojure.lang.AFn throwArity AFn.java 429]}]
:trace
[[clojure.lang.AFn throwArity AFn.java 429]
[clojure.lang.AFn invoke AFn.java 44]
[test2junit.core.proxy$java.io.StringWriter$ff19274a write nil -1]
[java.io.PrintWriter write PrintWriter.java 456]
[java.io.PrintWriter write PrintWriter.java 473]
[java.io.PrintWriter append PrintWriter.java 1004]
[java.io.PrintWriter append PrintWriter.java 56]
[java.util.Formatter$FixedString print Formatter.java 2595]
[java.util.Formatter format Formatter.java 2508]
[java.io.PrintWriter format PrintWriter.java 905]
[clojure.lang.Compiler$InstanceFieldExpr <init> Compiler.java 1157]
[clojure.lang.Compiler$HostExpr$Parser parse Compiler.java 998]
[clojure.lang.Compiler analyzeSeq Compiler.java 6868]
[clojure.lang.Compiler analyze Compiler.java 6669]
[clojure.lang.Compiler analyze Compiler.java 6625]
[clojure.lang.Compiler$BodyExpr$Parser parse Compiler.java 6001]
[clojure.lang.Compiler$FnMethod parse Compiler.java 5380]
[clojure.lang.Compiler$FnExpr parse Compiler.java 3972]
[clojure.lang.Compiler analyzeSeq Compiler.java 6866]
[clojure.lang.Compiler analyze Compiler.java 6669]
[clojure.lang.Compiler eval Compiler.java 6924]
[clojure.lang.Compiler eval Compiler.java 6890]
[clojure.core$eval invokeStatic core.clj 3105]
[clojure.core$eval invoke core.clj 3101]
[t2j_err.core_test$fn__486 invokeStatic core_test.clj 6]
[t2j_err.core_test$fn__486 invoke core_test.clj 4]
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels