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

Some annoyances with behat run.php

    XMLWordPrintable

Details

    • MOODLE_29_STABLE
    • MOODLE_29_STABLE
    • Easy
    • 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.

    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

              stronk7 Eloy Lafuente (stronk7)
              stronk7 Eloy Lafuente (stronk7)
              Rajesh Taneja Rajesh Taneja
              Dan Poltawski Dan Poltawski
              Dave Cooper Dave Cooper
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                11/May/15