You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/README.md
+28-13Lines changed: 28 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,17 +19,18 @@ writing we are running version 9.x. Support for this has been built into the
19
19
via [Composer](https://getcomposer.org/) if you don't already have it installed globally.
20
20
21
21
```console
22
-
> composer install
22
+
composer install
23
23
```
24
24
25
25
If running under macOS or Linux, you can create a symbolic link to make running tests a touch nicer.
26
26
27
27
```console
28
-
> ln -s ./vendor/bin/phpunit ./phpunit
28
+
ln -s ./vendor/bin/phpunit ./phpunit
29
29
```
30
30
31
-
You also need to install [XDebug](https://xdebug.org/docs/install) in order
32
-
for code coverage to be calculated successfully. After installing `XDebug`, you must add `xdebug.mode=coverage` in the **php.ini** file to enable code coverage.
31
+
You also need to install [Xdebug](https://xdebug.org/docs/install) in order
32
+
for code coverage to be calculated successfully. After installing `Xdebug`, you must
33
+
add `xdebug.mode=coverage` in the **php.ini** file to enable code coverage.
33
34
34
35
## Setting Up
35
36
@@ -56,41 +57,55 @@ More details on a test database setup are in the
56
57
[Testing Your Database](https://codeigniter4.github.io/CodeIgniter4/testing/database.html) section of the documentation.
57
58
58
59
If you want to run the tests without using live database you can
59
-
exclude `@DatabaseLive` group. Or make a copy of **phpunit.dist.xml** -
60
-
call it **phpunit.xml** - and comment out the `<testsuite>` named `Database`. This will make
61
-
the tests run quite a bit faster.
60
+
exclude `@DatabaseLive` group. This will make the tests run quite a bit faster.
61
+
62
+
## Groups
63
+
64
+
Each test class that we are running should belong to at least one
65
+
[@group](https://phpunit.readthedocs.io/en/9.5/annotations.html#group) that is written at class-level
0 commit comments