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

    • Testing Instructions:
      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
    • Fixed Branches:
      MOODLE_25_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-37458_master

      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

            Assignee:
            dmonllao David Monllaó
            Reporter:
            dmonllao David Monllaó
            Peer reviewer:
            Petr Skoda Petr Skoda
            Integrator:
            Dan Poltawski Dan Poltawski
            Tester:
            Rajesh Taneja Rajesh Taneja
            Participants:
            Component watchers:
            Andrew Lyons, Dongsheng Cai, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan, Andrew Lyons, Dongsheng Cai, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

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