Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-49531

Parallel behat runner with extraopts or tags broken

XMLWordPrintable

    • MOODLE_29_STABLE
    • MOODLE_29_STABLE
    • behat_parallel_extraopts
    • Easy
    • Hide

      Run the behat parallel executor with extra options or tags:

      php admin/tool/behat/cli/init.php --parallel=4
      php admin/tool/behat/cli/run.php -f progress --out php://stdout --tags ~@javascript

      ...the behat tests should run and complete successfully, instead of failing to start.

      Show
      Run the behat parallel executor with extra options or tags: php admin/tool/behat/cli/init.php --parallel=4 php admin/tool/behat/cli/run.php -f progress --out php://stdout --tags ~@javascript ...the behat tests should run and complete successfully, instead of failing to start.

      The parallel behat runner script does not correctly handle the 'extraopts' passing; extra options / tags will not get a space between the additional CLI parameters, resulting in incorrect commands.

      Example:
      php admin/tool/behat/cli/run.php -v --tags '~@javascript' -f junit --out ../behat_results.xml -f progress --out php://stdout
      Results in:
      vendor/bin/behat -config /dev/shm/moodledata/behat1/behat/behat.yml -v '@javascript' -f 'junit' --out '../behat_results.xml' -f 'progress' --out 'php://stdout'-tags="'@javascript'"

      I will provide a small patch for this.

            tlevi Tony Levi
            tlevi Tony Levi
            Rajesh Taneja Rajesh Taneja
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.