Uploaded image for project: 'Maven Surefire'
  1. Maven Surefire
  2. SUREFIRE-1230

Issue with config parameter 'redirectTestOutputToFile' when running cucumber parallel tests

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Bug
    • 2.18.1
    • None
    • Maven Surefire Plugin
    • None

    Description

      The config parameter redirectTestOutputToFile behaves differently based on how parallelism is configured in the surefire plugin.

      If the config is
      <forkCount>2</forkCount>
      <reuseForks>false</reuseForks>
      <redirectTestOutputToFile>true</redirectTestOutputToFile>

      then the output from the tests is directed correctly to 'xxxtest-output.txt' file.

      However, if the config is
      <threadCount>2</threadCount>
      <parallel>classes</parallel>
      <redirectTestOutputToFile>true</redirectTestOutputToFile>

      then the output from the tests is partially directed to the 'xxxtest-output.txt file and partially to stdout.
      Also the output files have different names in two cases.

      Attachments

        1. cucumber_java_skeleton.tar.gz
          48 kB
          Manoj Palki

        Activity

          People

            tibordigana Tibor Digana
            mpalki Manoj Palki
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: