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

Behat grammar improvements

XMLWordPrintable

    • MOODLE_25_STABLE, MOODLE_26_STABLE
    • MOODLE_25_STABLE, MOODLE_26_STABLE, MOODLE_27_STABLE
    • MDL-43236_master
    • Hide

      Test 1

      1. Check that behat master passes (you can ask integrators for the CI server status)

      Test 2

      1. From dirroot, php admin/tool/behat/cli/init.php
      2. Ensure you didn't set $CFG->behat_usedeprecated = true; in your config.php
      3. Write a new .feature file using one of the deprecated methods (https://tracker.moodle.org/browse/MDL-43236?focusedCommentId=272647&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-272647)
      4. From dirroot type php admin/tool/behat/util.php --enable
      5. Run vendor/bin/behat --config /asd/asd/asd/as/behat/behat.yml /absolute/path/to/the/feature/file/you/created/file.feature
      6. You SHOULD see a failure stating that that step was deprecated and proposing you an alternative
      7. Set $CFG->behat_usedeprecated = true; in your config.php
      8. Run vendor/bin/behat --config /asd/asd/asd/as/behat/behat.yml /absolute/path/to/the/feature/file/you/created/file.feature
      9. It SHOULD pass
      Show
      Test 1 Check that behat master passes (you can ask integrators for the CI server status) Test 2 From dirroot, php admin/tool/behat/cli/init.php Ensure you didn't set $CFG->behat_usedeprecated = true; in your config.php Write a new .feature file using one of the deprecated methods ( https://tracker.moodle.org/browse/MDL-43236?focusedCommentId=272647&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-272647 ) From dirroot type php admin/tool/behat/util.php --enable Run vendor/bin/behat --config /asd/asd/asd/as/behat/behat.yml /absolute/path/to/the/feature/file/you/created/file.feature You SHOULD see a failure stating that that step was deprecated and proposing you an alternative Set $CFG->behat_usedeprecated = true; in your config.php Run vendor/bin/behat --config /asd/asd/asd/as/behat/behat.yml /absolute/path/to/the/feature/file/you/created/file.feature It SHOULD pass

      Behat has some slight grammar errors with the word exists.

      Update steps/features so combinations of should and does with the word exist does not have a plural

      Correct: "X should|does (not) exist"
      Incorrect: "X should|does (not) exists"

            dmonllao David Monllaó
            damyon Damyon Wiese
            Frédéric Massart Frédéric Massart
            Dan Poltawski Dan Poltawski
            Rajesh Taneja Rajesh Taneja
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved:

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