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

On test specific page attachments should be filtered by the test name

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      We have configured the attachment extension; and for a class you see all of the relevant test data; but when you look at a particular test failure you still see all of the tests on that class. I would be really helpful if on this page we only showed attachment that had a prefix that matched the name of the test.

      So in our case we have a virtual class, we are using abbot so we are not actually using classes as the tests are in xml, with some tests:

      oracle.abbot.tests, with tests D-GutterTest, D-MessageLog

      Then in the attachment folder we have:

      D-GutterTests-Message.log
      D-GutterTests-Compiler.log
      D-MessageLog-FailedImage.jpg

      It would make this feature much more useful if we only showed the relevant tests data for each test otherwise in the case where we have 10 tests in a class the list of attached files can be quite huge.

      I am quite happy to make patch for this myself if given a pointer where to start.

        Attachments

          Activity

          Hide
          orrc Christopher Orr added a comment -

          This should be fixed once this pull request is released
          https://github.com/jenkinsci/junit-attachments-plugin/pull/1

          Show
          orrc Christopher Orr added a comment - This should be fixed once this pull request is released https://github.com/jenkinsci/junit-attachments-plugin/pull/1
          Hide
          orrc Christopher Orr added a comment -

          Version 1.3 of the plugin has been released, which includes this fix.

          Show
          orrc Christopher Orr added a comment - Version 1.3 of the plugin has been released, which includes this fix.
          Hide
          ldaley Luke Daley added a comment -

          I'm struggling to get this to work. Would you mind updating the documentation for the plugin (https://wiki.jenkins-ci.org/display/JENKINS/JUnit+Attachments+Plugin) for this?

          Show
          ldaley Luke Daley added a comment - I'm struggling to get this to work. Would you mind updating the documentation for the plugin ( https://wiki.jenkins-ci.org/display/JENKINS/JUnit+Attachments+Plugin ) for this?
          Hide
          orrc Christopher Orr added a comment -

          I'm not sure whether there is more to document.

          What is the unexpected behaviour you're seeing at the moment?

          Show
          orrc Christopher Orr added a comment - I'm not sure whether there is more to document. What is the unexpected behaviour you're seeing at the moment?
          Hide
          ldaley Luke Daley added a comment -

          The fact that this feature exists is only mentioned in the release notes for this release. There is also no definitive statement on what the naming convention / requirements are. It's buried in this ticket, but it would be better to make it clearer in the proper documentation.

          My attachments aren't associating with the test method and I don't know why. Having no definitive specification of the naming conventions makes debugging this more difficult.

          Show
          ldaley Luke Daley added a comment - The fact that this feature exists is only mentioned in the release notes for this release. There is also no definitive statement on what the naming convention / requirements are. It's buried in this ticket, but it would be better to make it clearer in the proper documentation. My attachments aren't associating with the test method and I don't know why. Having no definitive specification of the naming conventions makes debugging this more difficult.
          Hide
          ldaley Luke Daley added a comment -

          Hi Christopher,

          I still can't make this work. No matter what I try, the attachments are associated with the class and not the test case method.

          I've tried both approaches that are eluded to in the docs (file system placement and stdout) but can't get it to work.

          Would you mind updating the documentation?

          Show
          ldaley Luke Daley added a comment - Hi Christopher, I still can't make this work. No matter what I try, the attachments are associated with the class and not the test case method. I've tried both approaches that are eluded to in the docs (file system placement and stdout) but can't get it to work. Would you mind updating the documentation?
          Hide
          breinjhel Christopher Mata added a comment -

          Yes I dont see this in the test method level also. It would be really cool if its in method level rather than test class level.

          Show
          breinjhel Christopher Mata added a comment - Yes I dont see this in the test method level also. It would be really cool if its in method level rather than test class level.

            People

            • Assignee:
              huybrechts huybrechts
              Reporter:
              gdavison gdavison
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: