Настроен code coverage для тестов php части

This commit is contained in:
ErickSkrauch 2016-06-16 00:38:43 +03:00
parent 68cd18b9c6
commit 55de1c4993
4 changed files with 31 additions and 0 deletions

View File

@ -36,6 +36,7 @@ use yii\db\ActiveRecord;
* @mixin TimestampBehavior
*/
class Account extends ActiveRecord {
const STATUS_DELETED = -10;
const STATUS_REGISTERED = 0;
const STATUS_ACTIVE = 10;

View File

@ -15,3 +15,15 @@ config:
# the entry script URL (with host info) for functional tests
# PLEASE ADJUST IT TO THE ACTUAL ENTRY SCRIPT URL
test_entry_url: http://localhost:8080/api/web/index-test.php
coverage:
enabled: true
remote: true
whitelist:
include:
- ../../../api/*
exclude:
- ../../../api/config/*
- ../../../api/mails/*
- ../../../api/web/*
- ../../../api/runtime/*
c3url: 'http://localhost:8080/api/web/index-test.php'

View File

@ -11,3 +11,11 @@ settings:
colors: true
memory_limit: 1024M
log: true
coverage:
enabled: true
whitelist:
include:
- ../../../common/*
exclude:
- ../../../common/config/*
- ../../../common/mail/*

View File

@ -11,3 +11,13 @@ settings:
colors: true
memory_limit: 1024M
log: true
coverage:
enabled: true
whitelist:
include:
- ../../../console/*
exclude:
- ../../../console/config/*
- ../../../console/runtime/*
- ../../../console/migrations/*
- ../../../console/views/*