This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-01-25
Channels
- # aleph (12)
- # announcements (2)
- # beginners (40)
- # calva (8)
- # cider (26)
- # cljs-dev (71)
- # cljsrn (2)
- # clojure (122)
- # clojure-dev (9)
- # clojure-europe (2)
- # clojure-nl (2)
- # clojure-spec (42)
- # clojure-uk (20)
- # clojurescript (86)
- # cursive (15)
- # data-science (1)
- # datomic (42)
- # duct (4)
- # emacs (33)
- # events (1)
- # figwheel-main (2)
- # fulcro (33)
- # jobs (2)
- # jobs-discuss (46)
- # kaocha (13)
- # leiningen (9)
- # off-topic (62)
- # pathom (75)
- # quil (2)
- # re-frame (6)
- # reagent (13)
- # reitit (3)
- # shadow-cljs (52)
- # spacemacs (3)
- # specter (17)
- # sql (6)
- # tools-deps (2)
- # vim (3)
- # yada (28)
Hi! I'm trying to setup kaocha with junit.xml report on my project, I was able to create and launch a test suite, but having some problems with reporting...I have these two failing tests (and something else good):
(deftest should-fail-test
(testing "something"
(is (= 2 0))))
(deftest should-fail2-test
(testing "something else"
(is (= 2 0))
(throw (RuntimeException. "FAIL"))))
But in the xml report I have just:<?xml version='1.0' encoding='UTF-8'?>
<testsuites>
<testsuite errors="1" package="" tests="6" name="unit" time="0.000000" hostname="localhost" id="0" timestamp="2019-01-25T13:02:31" failures="2">
<properties/>
<system-out>
</system-out>
<system-err/>
</testsuite>
</testsuites>
is it a matter of bad configuration that I don't have any details on passed/failing tests?If you have a repository that you could share that reproduces this issue that would be awesome, otherwise just put as much information as possible into the ticket, tests.edn, which tool you're using, versions of things...
There's at least one known issue that is a bit similar, but what you're doing I would expect to work... Maybe it's some kind of version mismatch. Are you on the latest version of kaocha and kaocha-junit?
no I replicated the problem with a lein project, starting the repl and executing that instructions
OK, put it all in a ticket and I'll try to investigate after the weekend. If you can reproduce it I can probably fix it quickly. Sorry for the inconvenience.
I've created the ticket https://github.com/lambdaisland/kaocha-junit-xml/issues/4 , I will add more details later 🙂