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

phpunit: multiple xml files with different tests from the same suite results in only one being reported

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • xunit-plugin
    • None

      Hello! I noticed that if you have two PHPUNit XML files and they have the same suites but different tests in them (from parallelized test runs), only one is reported, which seems to be the second file; all the tests from the first XML are completely missing from the report.

      I disabled the option to delete temporary junit files, and then instead of using xUnit used the standard junit report giving it the converted files (generatedJUnitFiles/file-*), and it shows all the tests as expected, so xUnit is generating the junit xml files correctly. Then I tried pointing the junit reporter at generatedJUnitFiles/TEST*.xml files (of which there are 86) and it shows the same results as using xUnit where only the tests from the second xml are shown, so the problem must be in creating those files. I wonder why it cannot just use the two converted files?

      I'd rather not post the files to entire world but I can happily email all of these various to you, just let me know if that would help.

      Thanks again for this plugin, and let me know if you have tips/workarounds, as threading in this way is super useful but not getting all the results makes it not useful.

            gbois Gregory Boissinot
            mcrooney mcrooney
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: