From 75e0622e133d8bea477233ba6faddfc46327b0b7 Mon Sep 17 00:00:00 2001 From: Lorenzo Milesi Date: Thu, 2 Aug 2018 07:39:41 +0200 Subject: [PATCH] Fixed test docs --- CONTRIBUTING.md | 4 +--- docs/contributing/clean-code.md | 6 +++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 94289894..b4fc75e8 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -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**! diff --git a/docs/contributing/clean-code.md b/docs/contributing/clean-code.md index 62737386..d052104a 100644 --- a/docs/contributing/clean-code.md +++ b/docs/contributing/clean-code.md @@ -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`.