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

Allow to show full message for skipped test cases.

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Minor Minor
    • junit-plugin
    • None
    • Junit plugin version 1.21
      Jenkins version: 2.60.3

      When I am looking to skipped tests during collections from pytest in our jenkins instance , I can see in test report just short message.

      Skip Message

      collection skipped

       

      But as you can see we added full message from pytest as you can see here in report: 

      <?xml version="1.0" encoding="utf-8"?><testsuite errors="0" failures="0" name="pytest" skips="1" tests="1" time="5.672"><properties><testcase classname="test_1" file="test1.py" name="TestCase1" time="0"><skipped message="collection skipped">Skipped: This test is supposed to run on STORAGES: (iscsi), but this execution is just running on STORAGES: (nfs)</skipped></testcase></testsuite>

       

      I am not Java developer, but is it possible to add it like I tried here:

      https://github.com/petr-balogh/junit-plugin/commit/master

      If so I can send it as PR.

      Thanks

       

       

       

       

          [JENKINS-47796] Allow to show full message for skipped test cases.

          Petr Balogh added a comment -

          Github PR: https://github.com/jenkinsci/junit-plugin/pull/86

          I built this plugin and installed to our staging Jenkins env and it's worked as supposed to work. Now I can see also long msg.

          Petr Balogh added a comment - Github PR: https://github.com/jenkinsci/junit-plugin/pull/86 I built this plugin and installed to our staging Jenkins env and it's worked as supposed to work. Now I can see also long msg.

          Any updates on this Issue? According to this https://github.com/junit-team/junit5/blob/master/platform-tests/src/test/resources/jenkins-junit.xsd Junit does not use the message field in the skipped element. It would be helpful for us if Jenkins displayed the text between the skipped tags. 

          Zachary DiPasquale added a comment - Any updates on this Issue? According to this https://github.com/junit-team/junit5/blob/master/platform-tests/src/test/resources/jenkins-junit.xsd  Junit does not use the message field in the skipped element. It would be helpful for us if Jenkins displayed the text between the skipped tags. 

            Unassigned Unassigned
            pbalogh Petr Balogh
            Votes:
            4 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: