mirror of
https://github.com/pestphp/pest.git
synced 2026-03-11 18:27:23 +01:00
fix: converter
This commit is contained in:
@ -180,6 +180,13 @@ final class Converter
|
|||||||
*/
|
*/
|
||||||
public function getStateFromResult(PhpUnitTestResult $result): State
|
public function getStateFromResult(PhpUnitTestResult $result): State
|
||||||
{
|
{
|
||||||
return $this->stateGenerator->fromPhpUnitTestResult($result);
|
$numberOfPassedTests = $result->numberOfTestsRun()
|
||||||
|
- $result->numberOfTestErroredEvents()
|
||||||
|
- $result->numberOfTestFailedEvents()
|
||||||
|
- $result->numberOfTestSkippedEvents()
|
||||||
|
- $result->numberOfTestsWithTestConsideredRiskyEvents()
|
||||||
|
- $result->numberOfTestMarkedIncompleteEvents();
|
||||||
|
|
||||||
|
return $this->stateGenerator->fromPhpUnitTestResult($numberOfPassedTests, $result);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -91,7 +91,6 @@ final class TeamCityLogger
|
|||||||
|
|
||||||
public function testMarkedIncomplete(MarkedIncomplete $event): never
|
public function testMarkedIncomplete(MarkedIncomplete $event): never
|
||||||
{
|
{
|
||||||
// TODO: when does this trigger?
|
|
||||||
throw ShouldNotHappen::fromMessage('testMarkedIncomplete not implemented.');
|
throw ShouldNotHappen::fromMessage('testMarkedIncomplete not implemented.');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -18,3 +18,7 @@
|
|||||||
##teamcity[testIgnored name='build this one.' message='This test was ignored.' details='' flowId='1234']
|
##teamcity[testIgnored name='build this one.' message='This test was ignored.' details='' flowId='1234']
|
||||||
##teamcity[testFinished name='build this one.' duration='100000' flowId='1234']
|
##teamcity[testFinished name='build this one.' duration='100000' flowId='1234']
|
||||||
##teamcity[testSuiteFinished name='Tests/tests/Failure' flowId='1234']
|
##teamcity[testSuiteFinished name='Tests/tests/Failure' flowId='1234']
|
||||||
|
|
||||||
|
[90mTests:[39m [31;1m2 failed[39;22m[90m,[39m[39m [39m[33;1m1 risky[39;22m[90m,[39m[39m [39m[36;1m2 todos[39;22m[90m,[39m[39m [39m[33;1m1 skipped[39;22m[90m (2 assertions)[39m
|
||||||
|
[90mDuration:[39m [39m1.00s[39m
|
||||||
|
|
||||||
|
|||||||
@ -4,3 +4,7 @@
|
|||||||
##teamcity[testStarted name='can also pass' locationHint='pest_qn://tests/.tests/SuccessOnly.php::can also pass' flowId='1234']
|
##teamcity[testStarted name='can also pass' locationHint='pest_qn://tests/.tests/SuccessOnly.php::can also pass' flowId='1234']
|
||||||
##teamcity[testFinished name='can also pass' duration='100000' flowId='1234']
|
##teamcity[testFinished name='can also pass' duration='100000' flowId='1234']
|
||||||
##teamcity[testSuiteFinished name='Tests/tests/SuccessOnly' flowId='1234']
|
##teamcity[testSuiteFinished name='Tests/tests/SuccessOnly' flowId='1234']
|
||||||
|
|
||||||
|
[90mTests:[39m [32;1m2 passed[39;22m[90m (2 assertions)[39m
|
||||||
|
[90mDuration:[39m [39m1.00s[39m
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user