Note that there are some explanatory texts on larger screens.

plurals
  1. POWhat XSLT converts JUnit Xml format to JUnit Plain format
    primarykey
    data
    text
    <p>I'm moving my build from Ant to Gradle. Ant allows multiple reports with different formats to be created by the JUnit task. Gradle is more restrictive-- it generates a HTML report and a XML report. The XML report is a superset of the JUnit text report so it can be transformed from one to the other. What XSLT will convert the XML to the Text? Here is an example XML:</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;testsuite errors="0" failures="0" hostname="spina.stsci.edu" name="edu.stsci.CoSI.test.DependencySupressingConstraintJUnitTest" tests="6" time="0.14" timestamp="2012-02-27T18:08:03"&gt; &lt;properties /&gt; &lt;testcase classname="edu.stsci.CoSI.test.DependencySupressingConstraintJUnitTest" name="testSupressionWorks" time="0.01" /&gt; &lt;testcase classname="edu.stsci.CoSI.test.DependencySupressingConstraintJUnitTest" name="testSupressionWorksWithDependenciesDisabled" time="0.0020" /&gt; &lt;testcase classname="edu.stsci.CoSI.test.DependencySupressingConstraintJUnitTest" name="testPropagationIsDeferred" time="0.0010" /&gt; &lt;testcase classname="edu.stsci.CoSI.test.DependencySupressingConstraintJUnitTest" name="testPropagationIsDeferredWhenDependenciesAreSuppressed" time="0.0010" /&gt; &lt;testcase classname="edu.stsci.CoSI.test.DependencySupressingConstraintJUnitTest" name="testPropagationIsDeferredWhenDependenciesAreSuppressed2" time="0.0010" /&gt; &lt;testcase classname="edu.stsci.CoSI.test.DependencySupressingConstraintJUnitTest" name="testGarbageCollection" time="0.066" /&gt; &lt;system-out&gt;&lt;![CDATA[Running Supressing Constraint Running Supressing Constraint Running Supressing Constraint Change Me is: 2 Running Supressing Constraint Change Me is: 5 ]]&gt;&lt;/system-out&gt; &lt;system-err&gt;&lt;![CDATA[]]&gt;&lt;/system-err&gt; &lt;/testsuite&gt; </code></pre> <p>Here is the text that I would like it to produce:</p> <pre><code>Testsuite: edu.stsci.CoSI.test.DependencySupressingConstraintJUnitTest Tests run: 6, Failures: 0, Errors: 0, Time elapsed: 0.363 sec ------------- Standard Output --------------- Running Supressing Constraint Running Supressing Constraint Running Supressing Constraint Change Me is: 2 Running Supressing Constraint Change Me is: 5 ------------- ---------------- --------------- Testcase: testSupressionWorks took 0.001 sec Testcase: testSupressionWorksWithDependenciesDisabled took 0.001 sec Testcase: testPropagationIsDeferred took 0 sec Testcase: testPropagationIsDeferredWhenDependenciesAreSuppressed took 0.001 sec Testcase: testPropagationIsDeferredWhenDependenciesAreSuppressed2 took 0 sec Testcase: testGarbageCollection took 0.038 sec </code></pre> <p>Certain details aren't important (like the format of the seconds).</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload