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

Parameterized Classes are not displayed properly when published with nunit-plugin

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • Jenkins 2.140 (on Debian Stretch)
      org.jenkins-ci.plugins:nunit:0.23
      org.jenkins-ci.plugins:test-results-analyzer:0.3.5

      A parameterized test, will be shown wrong in Test Result Analyzer.

      The attached "Class1.cs" should show 3 different TestClasses inside TestResultAnalyzer:

      1. TestClass("a")
      2. TestClass("b")
      3. TestClass("c")

      Instead only TestClass is shown. It is unclear in which results are presented here inside.

      Adding the parameters to the classname attribute in TestResult.xml yields the same results.

      Find attached:

      1. Class1.cs: TestClass
      2. TestResult.original.xml: Result file for parameterized class
      3. TestResult.patched1.xml: 1st try to patch TestResult.xml (not successful)
      4. visualstudio-testexplorer.PNG: Tests shown in VisualStudio
      5. test-result-analyzer.PNG: Tests shown in Jenkins
      6. nunit-console.PNG: output from console runner

        1. TestResult.patched2.xml
          8 kB
        2. test-result-analyzer_patched2.PNG
          test-result-analyzer_patched2.PNG
          38 kB
        3. nunit-console.PNG
          nunit-console.PNG
          10 kB
        4. test-result-analyzer.PNG
          test-result-analyzer.PNG
          16 kB
        5. visualstudio-testexplorer.PNG
          visualstudio-testexplorer.PNG
          8 kB
        6. Class1.cs
          0.6 kB
        7. TestResult.original.xml
          8 kB
        8. TestResult.patched1.xml
          8 kB

          [JENKINS-53349] Parameterized Classes are not displayed properly when published with nunit-plugin

          Patrick Buech created issue -
          Patrick Buech made changes -
          Attachment New: nunit-console.PNG [ 43966 ]
          Patrick Buech made changes -
          Description Original: A parameterized test, will be shown wrong in Test Result Analyzer.

          The attached "Class1.cs" should show 3 different TestClasses inside TestResultAnalyzer:
          # TestClass("a")
          # TestClass("b")
          # TestClass("c")

          Instead only TestClass is shown. It is unclear in which results are presented here inside.

          Adding the parameters to the classname attribute in TestResult.xml yields the same results.

          Find attached:
          # Class1.cs: TestClass
          # TestResult.original.xml: Result file for parameterized class
          # TestResult.patched1.xml: 1st try to patch TestResult.xml (not successful)
          # visualstudio-testexplorer.PNG: Tests shown in VisualStudio
          # test-result-analyzer.PNG: Tests shown in Jenkins
          New: A parameterized test, will be shown wrong in Test Result Analyzer.

          The attached "Class1.cs" should show 3 different TestClasses inside TestResultAnalyzer:
           # TestClass("a")
           # TestClass("b")
           # TestClass("c")

          Instead only TestClass is shown. It is unclear in which results are presented here inside.

          Adding the parameters to the classname attribute in TestResult.xml yields the same results.

          Find attached:
           # Class1.cs: TestClass
           # TestResult.original.xml: Result file for parameterized class
           # TestResult.patched1.xml: 1st try to patch TestResult.xml (not successful)
           # visualstudio-testexplorer.PNG: Tests shown in VisualStudio
           # test-result-analyzer.PNG: Tests shown in Jenkins
           # nunit-console.PNG: output from console runner
          Patrick Buech made changes -
          Attachment New: test-result-analyzer_patched2.PNG [ 43987 ]
          Patrick Buech made changes -
          Attachment New: TestResult.patched2.xml [ 43988 ]

          Patrick Buech added a comment -

          I attched a patched TestResults.patched2.xml where I changed the classname of the "test-case". This yields the results as expected. See "test-result-analyzer_patched2.PNG".

           

          TestResult.patched2.xml

          Patrick Buech added a comment - I attched a patched TestResults.patched2.xml where I changed the classname of the "test-case". This yields the results as expected. See "test-result-analyzer_patched2.PNG".   TestResult.patched2.xml
          Alex Earl made changes -
          Assignee Original: Alex Earl [ slide_o_mix ]

            Unassigned Unassigned
            pl31 Patrick Buech
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: