init
This commit is contained in:
12
vendor/codeception/base/tests/coverage/LocalCept.php
vendored
Normal file
12
vendor/codeception/base/tests/coverage/LocalCept.php
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
$I = new CoverGuy($scenario);
|
||||
$I->wantTo('run local code coverage for cest and test');
|
||||
$I->amInPath('tests/data/sandbox');
|
||||
$I->executeCommand('run math MathTest --coverage');
|
||||
$I->seeInShellOutput('Classes: 100.00%');
|
||||
$I->seeInShellOutput('Methods: 100.00%');
|
||||
|
||||
$I->amGoingTo('run local codecoverage in cest');
|
||||
$I->executeCommand('run math MathCest --coverage');
|
||||
$I->seeInShellOutput('Classes: 100.00%');
|
||||
$I->seeInShellOutput('Methods: 100.00%');
|
||||
6
vendor/codeception/base/tests/coverage/RemoteServerWithHtmlCept.php
vendored
Normal file
6
vendor/codeception/base/tests/coverage/RemoteServerWithHtmlCept.php
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<?php
|
||||
$I = new CoverGuy($scenario);
|
||||
$I->wantTo('try generate remote codecoverage xml report');
|
||||
$I->amInPath('tests/data/sandbox');
|
||||
$I->executeCommand('run remote_server --coverage-html remote_server');
|
||||
$I->seeFileFound('index.html', 'tests/_output/remote_server');
|
||||
7
vendor/codeception/base/tests/coverage/RemoteServerWithXmlCept.php
vendored
Normal file
7
vendor/codeception/base/tests/coverage/RemoteServerWithXmlCept.php
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
<?php
|
||||
$I = new CoverGuy($scenario);
|
||||
$I->wantTo('try generate remote codecoverage xml report');
|
||||
$I->amInPath('tests/data/sandbox');
|
||||
$I->executeCommand('run remote_server --coverage-xml remote_server.xml');
|
||||
$I->seeFileFound('remote_server.xml', 'tests/_output');
|
||||
$I->seeInThisFile('coverage generated');
|
||||
8
vendor/codeception/base/tests/coverage/RemoteWithCrap4jCept.php
vendored
Normal file
8
vendor/codeception/base/tests/coverage/RemoteWithCrap4jCept.php
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
$I = new CoverGuy($scenario);
|
||||
$I->wantTo('try generate remote crap4j xml report');
|
||||
$I->amInPath('tests/data/sandbox');
|
||||
$I->executeCommand('run remote --coverage-crap4j');
|
||||
$I->seeInShellOutput('Crap4j report generated in crap4j.xml');
|
||||
$I->seeFileFound('crap4j.xml', 'tests/_output');
|
||||
#$I->seeCoverageStatsNotEmpty();
|
||||
9
vendor/codeception/base/tests/coverage/RemoteWithEnvironmentXmlCept.php
vendored
Normal file
9
vendor/codeception/base/tests/coverage/RemoteWithEnvironmentXmlCept.php
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
$I = new CoverGuy($scenario);
|
||||
$I->wantTo('try generate codecoverage xml report with environment');
|
||||
$I->amInPath('tests/data/sandbox');
|
||||
$I->executeCommand('run remote --coverage-xml --env default');
|
||||
$I->seeInShellOutput('Code Coverage Report');
|
||||
$I->dontSeeInShellOutput('RemoteException');
|
||||
$I->seeFileFound('coverage.xml', 'tests/_output');
|
||||
$I->seeCoverageStatsNotEmpty();
|
||||
7
vendor/codeception/base/tests/coverage/RemoteWithHtmlCept.php
vendored
Normal file
7
vendor/codeception/base/tests/coverage/RemoteWithHtmlCept.php
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
<?php
|
||||
$I = new CoverGuy($scenario);
|
||||
$I->wantTo('try generate remote codecoverage xml report');
|
||||
$I->amInPath('tests/data/sandbox');
|
||||
$I->executeCommand('run remote --coverage-html');
|
||||
$I->seeFileFound('index.html', 'tests/_output/coverage');
|
||||
$I->seeCoverageStatsNotEmpty();
|
||||
8
vendor/codeception/base/tests/coverage/RemoteWithPHPUnitCept.php
vendored
Normal file
8
vendor/codeception/base/tests/coverage/RemoteWithPHPUnitCept.php
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
|
||||
$I = new CoverGuy($scenario);
|
||||
$I->wantTo('try generate remote codecoverage phpunit report');
|
||||
$I->amInPath('tests/data/sandbox');
|
||||
$I->executeCommand('run remote --coverage-phpunit');
|
||||
$I->seeFileFound('index.xml', 'tests/_output/coverage-phpunit');
|
||||
$I->seeCoverageStatsNotEmpty();
|
||||
7
vendor/codeception/base/tests/coverage/RemoteWithTextCept.php
vendored
Normal file
7
vendor/codeception/base/tests/coverage/RemoteWithTextCept.php
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
<?php
|
||||
$I = new CoverGuy($scenario);
|
||||
$I->wantTo('try generate remote codecoverage text report');
|
||||
$I->amInPath('tests/data/sandbox');
|
||||
$I->executeCommand('run remote --coverage-text');
|
||||
$I->seeFileFound('coverage.txt', 'tests/_output');
|
||||
$I->seeCoverageStatsNotEmpty();
|
||||
8
vendor/codeception/base/tests/coverage/RemoteWithXmlCept.php
vendored
Normal file
8
vendor/codeception/base/tests/coverage/RemoteWithXmlCept.php
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
$I = new CoverGuy($scenario);
|
||||
$I->wantTo('try generate remote codecoverage xml report');
|
||||
$I->amInPath('tests/data/sandbox');
|
||||
$I->executeCommand('run remote --coverage-xml');
|
||||
$I->seeInShellOutput('Code Coverage Report');
|
||||
$I->seeFileFound('coverage.xml', 'tests/_output');
|
||||
$I->seeCoverageStatsNotEmpty();
|
||||
2
vendor/codeception/base/tests/coverage/_bootstrap.php
vendored
Normal file
2
vendor/codeception/base/tests/coverage/_bootstrap.php
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
<?php
|
||||
// Here you can initialize variables that will for your tests
|
||||
Reference in New Issue
Block a user