Skip to content

Instantly share code, notes, and snippets.

@lacostej
Created August 20, 2013 22:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lacostej/6287937 to your computer and use it in GitHub Desktop.
Save lacostej/6287937 to your computer and use it in GitHub Desktop.
Jenkins casperjs xunit incompatibility. Config.xml for test case job
<?xml version='1.0' encoding='UTF-8'?>
<project>
<actions/>
<description></description>
<keepDependencies>false</keepDependencies>
<properties/>
<scm class="hudson.scm.NullSCM"/>
<canRoam>true</canRoam>
<disabled>false</disabled>
<blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
<blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
<triggers/>
<concurrentBuild>false</concurrentBuild>
<builders>
<hudson.tasks.Shell>
<command>cat &gt; log.xml &lt;&lt; EOF
&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;testsuites duration=&quot;3.859&quot;&gt;
&lt;testsuite name=&quot;Checking the portal search for http://www.xxx.de/suche/jeans&quot; tests=&quot;1&quot; failures=&quot;0&quot; errors=&quot;0&quot; time=&quot;2.687&quot; timestamp=&quot;2013-08-20T14:12:55.953Z&quot; package=&quot;./execute_search_tests&quot;&gt;
&lt;testcase name=&quot;Subject equals the expected value&quot; classname=&quot;./execute_search_tests&quot; time=&quot;2.687&quot;&gt;&lt;/testcase&gt;
&lt;system-out&gt;&lt;/system-out&gt;
&lt;/testsuite&gt;
&lt;testsuite name=&quot;Checking the portal search for http://www.xxx.de/suche/asjdfkshjkfhdsjkafhkjasd&quot; tests=&quot;1&quot; failures=&quot;0&quot; errors=&quot;0&quot; time=&quot;1.172&quot; timestamp=&quot;2013-08-20T14:12:55.954Z&quot; package=&quot;./execute_search_tests&quot;&gt;
&lt;testcase name=&quot;Subject equals the expected value&quot; classname=&quot;./execute_search_tests&quot; time=&quot;1.172&quot;&gt;&lt;/testcase&gt;
&lt;system-out&gt;&lt;/system-out&gt;
&lt;/testsuite&gt;
&lt;/testsuites&gt;
EOF</command>
</hudson.tasks.Shell>
</builders>
<publishers>
<xunit plugin="xunit@1.61">
<types>
<JUnitType>
<pattern>log.xml</pattern>
<skipNoTestFiles>true</skipNoTestFiles>
<failIfNotNew>false</failIfNotNew>
<deleteOutputFiles>true</deleteOutputFiles>
<stopProcessingIfError>true</stopProcessingIfError>
</JUnitType>
</types>
<thresholds>
<org.jenkinsci.plugins.xunit.threshold.FailedThreshold>
<unstableThreshold></unstableThreshold>
<unstableNewThreshold></unstableNewThreshold>
<failureThreshold></failureThreshold>
<failureNewThreshold></failureNewThreshold>
</org.jenkinsci.plugins.xunit.threshold.FailedThreshold>
<org.jenkinsci.plugins.xunit.threshold.SkippedThreshold>
<unstableThreshold></unstableThreshold>
<unstableNewThreshold></unstableNewThreshold>
<failureThreshold></failureThreshold>
<failureNewThreshold></failureNewThreshold>
</org.jenkinsci.plugins.xunit.threshold.SkippedThreshold>
</thresholds>
<thresholdMode>1</thresholdMode>
</xunit>
</publishers>
<buildWrappers/>
</project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment