1 | <?php |
||
3 | class RoboFile extends \Robo\Tasks { |
||
4 | |||
5 | /** |
||
6 | * {@inheritdoc} |
||
7 | */ |
||
8 | protected function taskBehat($behat = NULL) { |
||
16 | |||
17 | protected function taskDrupal($command, $console = NULL) { |
||
22 | |||
23 | protected function taskDrush($command, $drush = NULL) { |
||
28 | |||
29 | /** |
||
30 | * Run Behat tests. |
||
31 | * |
||
32 | * To run all tests, simply run 'test:behat'. To run a specific feature, you |
||
33 | * can pass its path, relative to the tests/features directory: |
||
34 | * |
||
35 | * test:behat media/image.feature |
||
36 | * |
||
37 | * You can omit the .feature extension. This example runs |
||
38 | * tests/features/workflow/diff.feature: |
||
39 | * |
||
40 | * test:behat workflow/diff |
||
41 | * |
||
42 | * This also works with a directory of features. This example runs everything |
||
43 | * in tests/features/media: |
||
44 | * |
||
45 | * test:behat media |
||
46 | * |
||
47 | * Any command-line options after the initial -- will be passed unmodified to |
||
48 | * Behat. So you can filter tests by tags, like normal: |
||
49 | * |
||
50 | * test:behat -- --tags=javascript,~media |
||
51 | * |
||
52 | * This command will start Selenium Server in the background during the test |
||
53 | * run, to support functional JavaScript tests. |
||
54 | */ |
||
55 | public function testBehat(array $arguments) { |
||
80 | |||
81 | } |
||
82 |