Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-23564

PHPUnit test results from dataProvider tests are not parsed by xUnit

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Major Major
    • xunit-plugin
    • None
    • PHP 5.4.29-3
      PHPUnit 3.7.32
      Jenkins 1.555
      xUnit plugin 1.88

      The results for tests executed using dataProvider supplied values are not displayed in the xUnit summary of test results.

      The command used to execute the tests is:

      phpunit --log-junit=junit_dataprovider.xml

      The resulting xml looks like this:

      <?xml version="1.0" encoding="UTF-8"?>
        <testsuites>
          <testsuite name="" tests="3" assertions="143" failures="0" errors="0" time="137.034996">
              <testsuite name="functional" tests="3" assertions="143" failures="0" errors="0" time="137.034996">
                <testsuite name="StockOrderTest" file="/StockOrderTest.php" tests="3" assertions="143" failures="0" errors="0" time="137.034996">
                    <testsuite name="StockOrderTest::testDeleteLineItemFromExistingStockOrder" tests="2" assertions="85" failures="0" errors="0" time="108.644933">
                        <testcase name="testDeleteLineItemFromExistingStockOrder with data set #0" assertions="43" time="67.563011"/>
                        <testcase name="testDeleteLineItemFromExistingStockOrder with data set #1" assertions="42" time="41.081922"/>
                    </testsuite>
                   <testcase name="testStockOrder" class="StockOrderTest" file="/StockOrderTest.php" line="52" assertions="58" time="28.390063"/>
                 </testsuite>
             </testsuite>
           </testsuite>
        </testsuites>

      In Jenkins the only result displayed is for the non-dataProvider test ('testStockOrder') above.

            gbois Gregory Boissinot
            rob_lott Robin Lott
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: