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

Use behat lock before dropping the test site

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide
      1. Install and run the behat tests (probably you need to --drop and --install to update the site according to the codebase)
      2. Before they finish open another CLI and
        1. cd /to/your/moodle/site
        2. php admin/tool/behat/cli/util.php --drop
      3. The drop action SHOULD NOT begin and you SHOULD see "Waiting for other test execution to complete..."
      4. When the behat tests finishes the CLI where you ran the --drop command SHOULD continue, dropping the database and dataroot
      Show
      Install and run the behat tests (probably you need to --drop and --install to update the site according to the codebase) Before they finish open another CLI and cd /to/your/moodle/site php admin/tool/behat/cli/util.php --drop The drop action SHOULD NOT begin and you SHOULD see "Waiting for other test execution to complete..." When the behat tests finishes the CLI where you ran the --drop command SHOULD continue, dropping the database and dataroot
    • Affected Branches:
      MOODLE_25_STABLE
    • Fixed Branches:
      MOODLE_25_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-37886_master

      Description

      Right now there is a lock to avoid parallel runs because the database is reset after each test and the results would be messy; the test site --drop action also needs to use the lock to prevent dropping the database and dataroot while tests are running

        Attachments

          Activity

            People

            Assignee:
            dmonllao David Monllaó
            Reporter:
            dmonllao David Monllaó
            Peer reviewer:
            Adrian Greeve Adrian Greeve
            Integrator:
            Dan Poltawski Dan Poltawski
            Tester:
            Jason Fowler Jason Fowler
            Participants:
            Component watchers:
            Andrew Lyons, Dongsheng Cai, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              14/May/13