Fixed test docs
This commit is contained in:
@ -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**!
|
||||
|
||||
@ -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`.
|
||||
|
||||
Reference in New Issue
Block a user