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

Some annoyances with behat run.php

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide
      1. Install behat site with 2 parallel runs
        1. php admin/tool/behat/cli/init.php -j=2
      2. Run behat with --tags=@mod_assign and --profile=chrome
      3. Make sure chrome browser is invoked and only mod_assign features are executed.
      4. You can also check behat.yml for both processes.
      Show
      Install behat site with 2 parallel runs php admin/tool/behat/cli/init.php -j=2 Run behat with --tags=@mod_assign and --profile=chrome Make sure chrome browser is invoked and only mod_assign features are executed. You can also check behat.yml for both processes.
    • Difficulty:
      Easy
    • Affected Branches:
      MOODLE_29_STABLE
    • Fixed Branches:
      MOODLE_29_STABLE
    • Pull Master Branch:

      Description

      A) It seems that current run.php exits with error if the profile specified does not have tags defined. That seems to be an incorrect behavior. The error only should happen if the profile is incorrect.

      B) Also, for some reason, profile tags are getting precedence over manually passed tags, and that's exactly the opposite to normal behat behavior, where passed tags always get precedence over profile ones.

      C) Finally, tags are always being injected to behat configuration files, and this feature is only half supported, coz only supports "&" tags. Not sure why that is being done that way instead of passing them normally to the command being executed. It seems that this can end with the jobs not really executing the expected features.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              stronk7 Eloy Lafuente (stronk7)
              Reporter:
              stronk7 Eloy Lafuente (stronk7)
              Peer reviewer:
              Rajesh Taneja Rajesh Taneja
              Integrator:
              Dan Poltawski Dan Poltawski
              Tester:
              Dave Cooper Dave Cooper
              Participants:
              Component watchers:
              Andrew Lyons, Dongsheng Cai, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                11/May/15