• Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • logstash-plugin
    • None

      It would be very nice to see the test results we get from Junit or other test frameworks.
      I have a good idea how it should look like in the result but no idea how to build it in java ( I'm a ruby programmer )

          [JENKINS-25673] Add test results to the output

          Rusty Gerard added a comment -

          Unfortunately, beyond basic descriptive statistics (failCount, skipCount, totalCount) there's not much info available in the API: http://javadoc.jenkins-ci.org/hudson/tasks/test/AbstractTestResultAction.html

          It also provides a list of failed tests, but not skipped or passed tests. To get the same list of skipped and passed tests requires digging into the framework-specific derived classes (e.g. for JUnit you have to get a list of test suites and iterate through those), and updating the plugin to understand all of the major testing frameworks would be a big undertaking.

          Rusty Gerard added a comment - Unfortunately, beyond basic descriptive statistics (failCount, skipCount, totalCount) there's not much info available in the API: http://javadoc.jenkins-ci.org/hudson/tasks/test/AbstractTestResultAction.html It also provides a list of failed tests, but not skipped or passed tests. To get the same list of skipped and passed tests requires digging into the framework-specific derived classes (e.g. for JUnit you have to get a list of test suites and iterate through those), and updating the plugin to understand all of the major testing frameworks would be a big undertaking.

          Richard Pijnenburg added a comment - - edited

          Hi,

          I think if we could have the fail, skip and total counts would already be a great start.
          This way we can have some metrics on those values.

          thanks!

          edit: internally you could calculate the successful tests of course based on the 3 provided values.
          edit2: Why wouldn't you be able to get the skipped and total counts? I see getFailCount, getSkipCount and getTotalCount calls?

          Richard Pijnenburg added a comment - - edited Hi, I think if we could have the fail, skip and total counts would already be a great start. This way we can have some metrics on those values. thanks! edit: internally you could calculate the successful tests of course based on the 3 provided values. edit2: Why wouldn't you be able to get the skipped and total counts? I see getFailCount, getSkipCount and getTotalCount calls?

          Sorry, i should have read your comment more closely.
          So we can get the counts but not the list of skipped / passed tests which is fine
          If we could get the list of failed tests as well we can do metrics on how often certain tests fail.

          Richard Pijnenburg added a comment - Sorry, i should have read your comment more closely. So we can get the counts but not the list of skipped / passed tests which is fine If we could get the list of failed tests as well we can do metrics on how often certain tests fail.

          Rusty Gerard added a comment -

          Fixed in v1.0.2

          Rusty Gerard added a comment - Fixed in v1.0.2

            rgerard Rusty Gerard
            electrical Richard Pijnenburg
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: