Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reporter bug? #436

Closed
jakepearson opened this issue May 15, 2024 · 3 comments
Closed

Reporter bug? #436

jakepearson opened this issue May 15, 2024 · 3 comments

Comments

@jakepearson
Copy link

I started getting a stacktrace (below) when at least one test fails sometime in the last couple of releases of kaocha. If all tests are passing, the stacktrace doesn't show up. We use a custom reporter (which I do not believe changed) and appears to still be working as expected. Any ideas? And thanks for the great tool!

WARNING: boolean? already refers to: #'clojure.core/boolean? in namespace: fipp.visit, being replaced by: #'fipp.visit/boolean?
ERROR: Error in reporter: class java.lang.ClassCastException when processing {:type :summary, :file "form-init4536862003195188153.clj", :line 1, :kaocha/testable nil}
Expected:
java.lang.ClassCastException: class clojure.lang.PersistentVector cannot be cast to class java.lang.Number (clojure.lang.PersistentVector is in unnamed module of loader 'app'; java.lang.Number is in module java.base of loader 'bootstrap')
 at clojure.lang.Numbers.add (Numbers.java:155)
    fipp.engine$format_nodes$fn__13157$fn__13159.invoke (engine.cljc:207)
    fipp.engine$annotate_begins$fn__13147$fn__13149.invoke (engine.cljc:110)
    fipp.engine$annotate_rights$fn__13140.invoke (engine.cljc:80)
    ...
    fipp.engine$pprint_document.invokeStatic (engine.cljc:236)
    fipp.engine$pprint_document.invoke (engine.cljc:229)
    ...
    kaocha.output$print_doc.invokeStatic (output.clj:46)
    kaocha.output$print_doc.invoke (output.clj:42)
    kaocha.output$print_doc.invokeStatic (output.clj:44)
    kaocha.output$print_doc.invoke (output.clj:42)
    kaocha.report$print_expression.invokeStatic (report.clj:250)
    kaocha.report$print_expression.invoke (report.clj:241)
    kaocha.report$eval2759$fn__2760.invoke (report.clj:277)
    ...
    kaocha.report$eval2775$fn__2777.invoke (report.clj:294)
    ...
    kaocha.report$eval2792$fn__2793$fn__2799.invoke (report.clj:319)
    kaocha.report$eval2792$fn__2793.invoke (report.clj:317)
    ...
    autocruise.core$eval3436$fn__3437.invoke (core.clj:65)
    ...
    kaocha.config$resolve_reporter$fn__3046$fn__3047.invoke (config.clj:283)
    ...
    kaocha.config$resolve_reporter$fn__3046.invoke (config.clj:283)
    kaocha.api$resolve_reporter$fn__3139.invoke (api.clj:82)
    ...
    kaocha.api$run$fn__3144$fn__3148$fn__3149.invoke (api.clj:165)
    ...
    kaocha.api$run$fn__3144$fn__3148.invoke (api.clj:133)
    ...
    kaocha.api$run$fn__3144.invoke (api.clj:132)
    ...
    kaocha.api$run.invokeStatic (api.clj:110)
    kaocha.api$run.invoke (api.clj:97)
    kaocha.runner$run$fn__3207.invoke (runner.clj:131)
    ...
    kaocha.runner$run.invokeStatic (runner.clj:129)
    kaocha.runner$run.invoke (runner.clj:72)
    kaocha.runner$_main_STAR_.invokeStatic (runner.clj:165)
    kaocha.runner$_main_STAR_.doInvoke (runner.clj:143)
    ...
    kaocha.runner$_main.invokeStatic (runner.clj:176)
    kaocha.runner$_main.doInvoke (runner.clj:174)
    ...
    user$eval140.invokeStatic (form-init4536862003195188153.clj:1)
    user$eval140.invoke (form-init4536862003195188153.clj:1)
    ...
    ```
@plexus
Copy link
Member

plexus commented May 23, 2024

Hi Jake,

Not sure what's happening here. Any chance you could put together a small repo that reproduces the issue? Thanks!

@jakepearson
Copy link
Author

I'll see what I can do. Thanks.

@jakepearson
Copy link
Author

I wasn't able to get a repro so I'm going to close this. Thanks for the great library.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

2 participants