Testing Area/Behat Testing/Running test: Difference between revisions
From Mahara Wiki
< Testing Area | Behat Testing
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<h2>Running the test</h2> | <h2>Running the test</h2> | ||
Run Behat... | Run Behat... | ||
Line 17: | Line 10: | ||
The tag is whatever you have tagged your test to be. For example: | The tag is whatever you have tagged your test to be. For example: | ||
mahara_behat run @core_page | mahara_behat run @core_page | ||
<pre> | |||
When you run the command below it will start up: | |||
Selenium is running | |||
Start the PHP server | |||
Enable test site | |||
</pre> | |||
[[Category:Behat]] | [[Category:Behat]] |
Revision as of 16:38, 16 December 2014
Running the test
Run Behat... Only run tests with the tag: @tag
To run your test that you have written use the command from any directory:
mahara_behat run @tag
The tag is whatever you have tagged your test to be. For example:
mahara_behat run @core_page
When you run the command below it will start up: Selenium is running Start the PHP server Enable test site