Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-35611 META: BDD in Moodle
  3. MDL-37458

Generalize phpunit_utils methods commonly used by phpunit and behat

    XMLWordPrintable

Details

    • MOODLE_25_STABLE
    • MDL-37458_master
    • Hide

      This tests are looking for regressions, no new features are added by this patch

      • Drop your phpunit environment (php admin/tool/phpunit/cli/util.php --drop)
      • You SHOULD NOT see any warning, error or debugging message and the process SHOULD finish well
      • Install your phpunit environment (php admin/tool/phpunit/cli/util.php --install)
      • You SHOULD NOT see any warning, error or debugging message and the process SHOULD finish well
      • Run the phpunit diagnostic tool (php admin/tool/phpunit/cli/util.php --diag)
      • You SHOULD NOT see any text
      • You SHOULD NOT see any warning, error or debugging message and the process SHOULD finish well
      • Build phpunit.xml (php admin/tool/phpunit/cli/util.php --buildconfig)
      • You SHOULD NOT see any warning, error or debugging message and the process SHOULD finish well
      • Verify that you can not run phpunit in two different CLIs at the same time
        • Open two CLI and cd to your dirroot
        • Run "phpunit" on one of them (you don't need to run the whole suit, filter if you don't want to wait that much)
        • Before the tests finishes run "phpunit" in the other CLI
        • You SHOULD see the following text: "Waiting for other test execution to complete..."
        • When the first CLI phpunit command ends the second CLI phpunit command SHOULD begin
        • You SHOULD not see any error, warning or debugging message anywhere
      Show
      This tests are looking for regressions, no new features are added by this patch Drop your phpunit environment (php admin/tool/phpunit/cli/util.php --drop) You SHOULD NOT see any warning, error or debugging message and the process SHOULD finish well Install your phpunit environment (php admin/tool/phpunit/cli/util.php --install) You SHOULD NOT see any warning, error or debugging message and the process SHOULD finish well Run the phpunit diagnostic tool (php admin/tool/phpunit/cli/util.php --diag) You SHOULD NOT see any text You SHOULD NOT see any warning, error or debugging message and the process SHOULD finish well Build phpunit.xml (php admin/tool/phpunit/cli/util.php --buildconfig) You SHOULD NOT see any warning, error or debugging message and the process SHOULD finish well Verify that you can not run phpunit in two different CLIs at the same time Open two CLI and cd to your dirroot Run "phpunit" on one of them (you don't need to run the whole suit, filter if you don't want to wait that much) Before the tests finishes run "phpunit" in the other CLI You SHOULD see the following text: "Waiting for other test execution to complete..." When the first CLI phpunit command ends the second CLI phpunit command SHOULD begin You SHOULD not see any error, warning or debugging message anywhere

    Description

      phpunit_utils class contains methods that can be reused easily by behat init/reset scripts, moving this methods to new classes or a parent abstract class will allow access from both setup scripts

      Attachments

        Activity

          People

            dmonllao David Monllaó
            dmonllao David Monllaó
            Petr Skoda Petr Skoda
            Dan Poltawski Dan Poltawski
            Rajesh Taneja Rajesh Taneja
            Adrian Greeve, David Woloszyn, Huong Nguyen, Jake Dallimore, Michael Hawkins, Stevani Andolo
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              14/May/13