Skip to content

Commit

Permalink
Fixed test docs
Browse files Browse the repository at this point in the history
  • Loading branch information
maxxer committed Aug 2, 2018
1 parent 7755f05 commit 75e0622
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
4 changes: 1 addition & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -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**!
6 changes: 3 additions & 3 deletions docs/contributing/clean-code.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Expand Down

0 comments on commit 75e0622

Please sign in to comment.