Skip to content

Commit 2ededbb

Browse files
committed
Merge branch 'running_tests_command' of https://github.com/brikou/symfony-docs into brikou-running_tests_command
Conflicts: book/testing.rst
2 parents 66d4b8f + 4757e8c commit 2ededbb

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

book/testing.rst

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,17 @@ Running tests for a given file or directory is also very easy:
7171

7272
.. code-block:: bash
7373
74+
# run all tests for the Controller
75+
$ phpunit -c app src/Sensio/HelloBundle/Tests/Controller/
76+
7477
# run all tests for the Model
75-
$ phpunit -c app Acme/HelloBundle/Tests/Model/
78+
$ phpunit -c app src/Sensio/HelloBundle/Tests/Model/
7679
7780
# run tests for the Article class
78-
$ phpunit -c app Acme/HelloBundle/Tests/Model/ArticleTest.php
81+
$ phpunit -c app src/Sensio/HelloBundle/Tests/Model/ArticleTest.php
82+
83+
# run all tests for the entire Bundle
84+
$ phpunit -c app src/Sensio/HelloBundle/
7985
8086
.. index::
8187
single: Tests; Functional Tests

0 commit comments

Comments
 (0)