MDL-42842 behat: Adding a new formatter
authorDavid Monllao <davidm@moodle.com>
Wed, 20 Nov 2013 05:37:26 +0000 (13:37 +0800)
committerDavid Monllao <davidm@moodle.com>
Tue, 26 Nov 2013 02:48:58 +0000 (10:48 +0800)
Based on ProgressFormatter, the site info
will be displayed when the suite begins.

composer.json
lib/behat/classes/behat_config_manager.php

index 0699884..a0d5ea3 100644 (file)
@@ -8,6 +8,6 @@
     "require-dev": {
         "phpunit/phpunit": "3.7.*",
         "phpunit/dbUnit": "1.2.*",
-        "moodlehq/behat-extension": "1.26.2"
+        "moodlehq/behat-extension": "1.26.3"
     }
 }
index c277e13..11fbf4d 100644 (file)
@@ -190,12 +190,15 @@ class behat_config_manager {
                         'selenium2' => null
                     ),
                     'Moodle\BehatExtension\Extension' => array(
+                        'formatters' => array(
+                            'moodle_progress' => 'Moodle\BehatExtension\Formatter\MoodleProgressFormatter'
+                        ),
                         'features' => $features,
                         'steps_definitions' => $stepsdefinitions
                     )
                 ),
                 'formatter' => array(
-                    'name' => 'progress'
+                    'name' => 'moodle_progress'
                 )
             )
         );