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

Point to admin/tool/behat/cli/init.php instead of util.php when providing info about test site install/reinstall

    XMLWordPrintable

Details

    • MOODLE_25_STABLE
    • MOODLE_25_STABLE
    • MDL-39481_master
    • Hide
      1. Install or update your behat test environment
      2. Edit version.php and change the version to 2013060200
      3. Run behat
      4. You SHOULD see a message stating that your behat test site is outdated, and to run admin/tool/behat/cli/init.php, not admin/tool/behat/cli/util.php
      5. Run php admin/tool/behat/cli/util.php --enable
      6. You SHOULD see a message stating that you must reinstall behat, and to run admin/tool/behat/cli/init.php, not admin/tool/behat/cli/util.php
      7. Restore the original version.php
      Show
      Install or update your behat test environment Edit version.php and change the version to 2013060200 Run behat You SHOULD see a message stating that your behat test site is outdated, and to run admin/tool/behat/cli/init.php, not admin/tool/behat/cli/util.php Run php admin/tool/behat/cli/util.php --enable You SHOULD see a message stating that you must reinstall behat, and to run admin/tool/behat/cli/init.php, not admin/tool/behat/cli/util.php Restore the original version.php

    Description

      There are two CLI scripts to manage the behat test environment. init.php should be used in the info messages as the script to run, is more simple and it also updates the dependencies specified though composer.

      With the current messages users can have trouble if they reinstall the site using util.php --drop and util.php --install, as there can be changes in https://github.com/moodlehq/moodle-behat-extension project and they must be pulled according the moodle codebase changes.

      Attachments

        Activity

          People

            dmonllao David Monllaó
            dmonllao David Monllaó
            Sam Hemelryk Sam Hemelryk
            Sam Hemelryk Sam Hemelryk
            Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Stevani Andolo
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              14/May/13