Skip to content

Commit 6e734d0

Browse files
author
davert
committed
=auto-updated documentation
1 parent f78fe67 commit 6e734d0

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

docs/07-AdvancedUsage.markdown

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,18 @@ php codecept.phar run -c ~/projects/drupal/
3939
php codecept.phar generate:cept acceptance CreateArticle -c ~/projects/drupal/
4040

4141

42-
{% endhighlight %} bash
42+
{% endhighlight %}
43+
4344
To create a project in directory other then current just provide it's path as a parameter.
4445

46+
4547
{% highlight yaml %}
46-
bash
48+
49+
4750
php codecept.phar bootstrap ~/projects/drupal/
4851

4952

53+
5054
{% endhighlight %}
5155

5256
Basically `-c` option allows you specify not only the path but a config file to be used. Thus, you can have several `codeception.yml` file for your test suite. You may use it to specify different environments and settings. Just pass a filename into `-c` parameter to execute tests with specific config settings.
@@ -56,18 +60,22 @@ Basically `-c` option allows you specify not only the path but a config file to
5660
There are several ways to execute bunch of tests. You can run tests from specific directory:
5761

5862
{% highlight yaml %}
59-
bash
63+
64+
6065
php codecept.phar run tests/acceptance/admin
6166

6267

68+
6369
{% endhighlight %}
6470

6571
Or execute one (or several) specific groups of tests:
6672

6773
{% highlight yaml %}
68-
bash
74+
75+
6976
php codecept.phar run -g admin -g editor
7077

78+
7179
{% endhighlight %}
7280

7381
In this case all tests that belongs to groups admin or editor will be executed. Groups concept were taken from PHPUnit and in classical PHPUnit tests they behave just in the same way. To add Cept to the group - use `$scenario` variable:

0 commit comments

Comments
 (0)