Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-12671

JUNIT parser ignores test results created/provided from preceeding tasks

    • Icon: Bug Bug
    • Resolution: Answered
    • Icon: Low Low
    • None
    • None
    • Tests

      Steps to reproduce

      1. In the default job, create task to checkout a repository that has no any test result files
      2. Create a script task that will create or copy a test result file to the build working directory. See screenshot script.png
      3. Create a Junit parser task to parse the result files created in step 2 above.
      4. The build fails with the error "Could not find test result reports in the ...."

      This same configuration worked in Bamboo 4.1 but fails in later versions of 4.3.x

        1. script.jpg
          script.jpg
          42 kB
        2. parser.jpg
          parser.jpg
          82 kB

            [BAM-12671] JUNIT parser ignores test results created/provided from preceeding tasks

            Monique Khairuliana (Inactive) made changes -
            Workflow Original: Bamboo Workflow 2016 v1 - Restricted [ 1443473 ] New: JAC Bug Workflow v3 [ 3383838 ]
            Status Original: Resolved [ 5 ] New: Closed [ 6 ]

            I'm having this problem using JUnit Parser on 5.14.  In my case I am passing the xml file from one stage to the next as an artifact.  Is this not exactly what artifacts are for?

            To fix it you could have the artifact copy for a given stage touch the file so that its timestamp is after the start of the stage.

            Better yet, if your goal is to avoid picking up files from previous builds, why not check their time vs. the start of the build rather than the start of the stage?

             

            Phil Rittenhouse added a comment - I'm having this problem using JUnit Parser on 5.14.  In my case I am passing the xml file from one stage to the next as an artifact.  Is this not exactly what artifacts are for? To fix it you could have the artifact copy for a given stage touch the file so that its timestamp is after the start of the stage. Better yet, if your goal is to avoid picking up files from previous builds, why not check their time vs. the start of the build rather than the start of the stage?  
            Owen made changes -
            Workflow Original: Bamboo Workflow 2016 v1 [ 1421523 ] New: Bamboo Workflow 2016 v1 - Restricted [ 1443473 ]
            Marek Went (Inactive) made changes -
            Workflow Original: Bamboo Workflow 2014 v2 [ 607168 ] New: Bamboo Workflow 2016 v1 [ 1421523 ]

            Seem to be having the same problem with MSTest parser. Unable to pick up the .trx file generated.

            Rostislav Pasechnikov added a comment - Seem to be having the same problem with MSTest parser. Unable to pick up the .trx file generated.

            we still have this problem too: 05.2016, is there any way to switch off this behaviour?

            Emre Kutbay added a comment - we still have this problem too: 05.2016, is there any way to switch off this behaviour?

            I still have this problem in Atlassian Bamboo version 5.9.2 build 5917 - 09 Jul 15
            When will there be a concrete work around or fix for this?

            Have tried all known work arounds with no success

            Brian Johnson added a comment - I still have this problem in Atlassian Bamboo version 5.9.2 build 5917 - 09 Jul 15 When will there be a concrete work around or fix for this? Have tried all known work arounds with no success
            James Dumay made changes -
            Workflow Original: Bamboo Workflow 2014 [ 595023 ] New: Bamboo Workflow 2014 v2 [ 607168 ]
            James Dumay made changes -
            Workflow Original: Bamboo Workflow 2010 [ 458845 ] New: Bamboo Workflow 2014 [ 595023 ]
            James Dumay made changes -
            Link New: This issue is duplicated by BAM-12768 [ BAM-12768 ]

              kbrazulewicz Krystian Brazulewicz
              smaiyaki Sultan Maiyaki (Inactive)
              Affected customers:
              2 This affects my team
              Watchers:
              14 Start watching this issue

                Created:
                Updated:
                Resolved: