yii2-netdisk/codeception.yml

28 lines
574 B
YAML
Raw Normal View History

actor: Tester
bootstrap: _bootstrap.php
2016-07-16 09:13:51 +08:00
paths:
tests: tests
output: tests/_output
2016-07-16 09:13:51 +08:00
data: tests/_data
helpers: tests/_support
settings:
memory_limit: 1024M
colors: true
modules:
config:
Yii2:
configFile: 'config/test.php'
2016-07-15 02:03:28 +08:00
# To enable code coverage:
2014-12-11 02:44:27 +08:00
#coverage:
# #c3_url: http://localhost:8080/index-test.php/
# enabled: true
# #remote: true
# #remote_config: '../codeception.yml'
# whitelist:
2014-12-11 02:44:27 +08:00
# include:
Putting the proper paths for codeception code coverage (#82) The tests folder was changed some time ago, however the paths have not been updated. After running the tests with coverage $ vendor/codeception/base/codecept run functional --coverage-html Codeception PHP Testing Framework v2.2.3 Powered by PHPUnit 4.8.27 by Sebastian Bergmann and contributors. Functional Tests (10) ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- ✔ ContactFormCest: Open contact page (0.40s) ✔ ContactFormCest: Submit empty form (0.13s) ✔ ContactFormCest: Submit form with incorrect email (0.09s) ✔ ContactFormCest: Submit form successfully (0.30s) ✔ LoginFormCest: Open login page (0.03s) ✔ LoginFormCest: Internal login by id (0.06s) ✔ LoginFormCest: Internal login by instance (0.05s) ✔ LoginFormCest: Login with empty credentials (0.07s) ✔ LoginFormCest: Login with wrong credentials (0.07s) ✔ LoginFormCest: Login successfully (0.07s) ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Time: 6.46 seconds, Memory: 34.25MB OK (10 tests, 23 assertions) Code Coverage Report: 2016-08-09 22:21:18 Summary: Classes: (0/0) Methods: (0/0) Lines: (0/0) Remote CodeCoverage reports are not printed to console HTML report generated in coverage. ----------------------------------------------------------- After putting in the proper path you get Code Coverage Report: 2016-08-09 22:26:05 Summary: Classes: 40.00% (2/5) Methods: 63.64% (14/22) Lines: 76.04% (73/96) \app\controllers::SiteController Methods: 57.14% ( 4/ 7) Lines: 89.47% ( 34/ 38) \app\models::ContactForm Methods: 100.00% ( 3/ 3) Lines: 100.00% ( 15/ 15) \app\models::LoginForm Methods: 100.00% ( 4/ 4) Lines: 100.00% ( 18/ 18) \app\models::User Methods: 42.86% ( 3/ 7) Lines: 40.00% ( 6/ 15) Remote CodeCoverage reports are not printed to console
2016-08-10 06:45:16 +08:00
# - models/*
# - controllers/*
# - commands/*
# - mail/*