Closed lverns closed 5 years ago
The Junit XML files are missing newlines between the failure header and the "Expected" label, as well as between the expected value and the "Actual" label
Given a simple test namespace:
(ns midje-demo.core-test (:require [midje.sweet :refer :all])) (fact "fixme, I fail." 1 => 2)
With ./midje.clj
./midje.clj
(change-defaults :emitter 'midje.emission.plugins.junit :pretty-print false :colorize false)
Then running (midje.repl/load-facts) in the REPL causes the following file to be generated
(midje.repl/load-facts)
<testsuite name='midje-demo.core-test'> <testcase classname='midje-demo.core-test' name='fixme, I fail.'> <failure type=':actual-result-did-not-match-expected-value'> <![CDATA[ FAIL fixme, I fail. at (core_test.clj:5)Expected: 2Actual: 1]]> </failure> </testcase> </testsuite>
I would instead expect the CDATA chunk to be:
<![CDATA[ FAIL fixme, I fail. at (core_test.clj:5) Expected: 2 Actual: 1]]>
Summary
The Junit XML files are missing newlines between the failure header and the "Expected" label, as well as between the expected value and the "Actual" label
Example
Given a simple test namespace:
With
./midje.clj
Then running
(midje.repl/load-facts)
in the REPL causes the following file to be generatedI would instead expect the CDATA chunk to be: