Fork me on GitHub

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'?>
<testsuite errors="1" package="" tests="6" name="unit" time="0.000000" hostname="localhost" id="0" timestamp="2019-01-25T13:02:31" failures="2">
is it a matter of bad configuration that I don't have any details on passed/failing tests?


Not unlikely that it's a bug. Could you file a ticket?


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...


ok, I will setup something to replicate the error and fill in the issue, thanks!


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?


I think so, I'm using kaocha 0.0-367 and kaocha-junit-xml "0.0-43"


Yeah that seems about right...


The weird thing I'm doing, is launching it manually


basically I open the repl and execute:

(use 'kaocha.repl)

(run :unit)


I see, does it make a difference if you run it from the command line?


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 , I will add more details later 🙂