Fixed test docs

This commit is contained in:
Lorenzo Milesi
2018-08-02 07:39:41 +02:00
parent 7755f056d9
commit 75e0622e13
2 changed files with 4 additions and 6 deletions

View File

@ -28,9 +28,7 @@ We accept contributions via Pull Requests on [Github](https://github.com/2amigos
## Running Tests
``` bash
$ ./vendor/bin/phpunit
```
See the *Running Tests* section on the [docs](http://yii2-usuario.readthedocs.io/en/latest/contributing/clean-code/).
**Happy coding**!

View File

@ -47,12 +47,12 @@ For further information, please visit [FriendsOfPHP/PHP-CS-Fixer](https://github
Running Tests
-------------
We are using `Codeception` for testing the module. Do the following:
We are using `Codeception` for testing the module. To run tests do the following:
- Create a `yii2-usuario-test` database.
- Add database access configuration `tests/_app/config/db.php`
- Add database access configuration in `tests/_app/config/db.php` (or create `db.local.php` in the same directory) and `codeception.dist.yml`.
- Run `./vendor/bin/codecept build`
- Run `./vendor/bin/codecept functional`
- Run `./vendor/bin/codecept run`
We still need to add `unit` tests to the module. Feel free to add your tests to it as long as it makes use of
`Codeception`.