yii2-netdisk/codeception.yml

37 lines
769 B
YAML
Raw Normal View History

actor: Tester
bootstrap: _bootstrap.php
2016-07-16 04:13:51 +03:00
paths:
tests: tests
log: tests/_output
data: tests/_data
helpers: tests/_support
settings:
memory_limit: 1024M
colors: true
modules:
config:
Yii2:
configFile: 'config/test.php'
2016-07-14 21:03:28 +03:00
# To enable code coverage:
2014-12-10 22:44:27 +04:00
#coverage:
# #c3_url: http://localhost:8080/index-test.php/
# enabled: true
# #remote: true
# #remote_config: '../codeception.yml'
# whitelist:
2014-12-10 22:44:27 +04: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 08:45:16 +10:00
# - models/*
# - controllers/*
# - commands/*
# - mail/*
2014-12-10 22:44:27 +04:00
# blacklist:
# 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 08:45:16 +10:00
# - assets/*
# - config/*
# - runtime/*
# - vendor/*
# - views/*
# - web/*
# - tests/*