This commit is contained in:
2020-02-01 16:47:12 +07:00
commit 4c619ad6e6
16739 changed files with 3329179 additions and 0 deletions

View 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%');

View 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');

View 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');

View 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();

View 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();

View 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();

View 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();

View 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();

View 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();

View File

@@ -0,0 +1,2 @@
<?php
// Here you can initialize variables that will for your tests