|
| 1 | +--TEST-- |
| 2 | +--repeat with --log-teamcity reports a test suite with a location hint per repeated test method |
| 3 | +--FILE-- |
| 4 | +<?php declare(strict_types=1); |
| 5 | +$_SERVER['argv'][] = '--no-configuration'; |
| 6 | +$_SERVER['argv'][] = '--do-not-cache-result'; |
| 7 | +$_SERVER['argv'][] = '--repeat'; |
| 8 | +$_SERVER['argv'][] = '2'; |
| 9 | +$_SERVER['argv'][] = '--no-output'; |
| 10 | +$_SERVER['argv'][] = '--log-teamcity'; |
| 11 | +$_SERVER['argv'][] = 'php://stdout'; |
| 12 | +$_SERVER['argv'][] = __DIR__ . '/_files/SuccessTest.php'; |
| 13 | + |
| 14 | +require __DIR__ . '/../../bootstrap.php'; |
| 15 | + |
| 16 | +(new PHPUnit\TextUI\Application)->run($_SERVER['argv']); |
| 17 | +--EXPECTF-- |
| 18 | +##teamcity[testCount count='4' flowId='%d'] |
| 19 | +##teamcity[testSuiteStarted name='PHPUnit\TestFixture\Repeat\SuccessTest' locationHint='php_qn:%sSuccessTest.php::\PHPUnit\TestFixture\Repeat\SuccessTest' flowId='%d'] |
| 20 | +##teamcity[testSuiteStarted name='PHPUnit\TestFixture\Repeat\SuccessTest::testOne' locationHint='php_qn:%sSuccessTest.php::\PHPUnit\TestFixture\Repeat\SuccessTest::testOne' flowId='%d'] |
| 21 | +##teamcity[testStarted name='testOne (repetition 1 of 2)' locationHint='php_qn:%sSuccessTest.php::\PHPUnit\TestFixture\Repeat\SuccessTest::testOne (repetition 1 of 2)' flowId='%d'] |
| 22 | +##teamcity[testFinished name='testOne (repetition 1 of 2)' duration='%s' flowId='%d'] |
| 23 | +##teamcity[testStarted name='testOne (repetition 2 of 2)' locationHint='php_qn:%sSuccessTest.php::\PHPUnit\TestFixture\Repeat\SuccessTest::testOne (repetition 2 of 2)' flowId='%d'] |
| 24 | +##teamcity[testFinished name='testOne (repetition 2 of 2)' duration='%s' flowId='%d'] |
| 25 | +##teamcity[testSuiteFinished name='PHPUnit\TestFixture\Repeat\SuccessTest::testOne' flowId='%d'] |
| 26 | +##teamcity[testSuiteStarted name='PHPUnit\TestFixture\Repeat\SuccessTest::testTwo' locationHint='php_qn:%sSuccessTest.php::\PHPUnit\TestFixture\Repeat\SuccessTest::testTwo' flowId='%d'] |
| 27 | +##teamcity[testStarted name='testTwo (repetition 1 of 2)' locationHint='php_qn:%sSuccessTest.php::\PHPUnit\TestFixture\Repeat\SuccessTest::testTwo (repetition 1 of 2)' flowId='%d'] |
| 28 | +##teamcity[testFinished name='testTwo (repetition 1 of 2)' duration='%s' flowId='%d'] |
| 29 | +##teamcity[testStarted name='testTwo (repetition 2 of 2)' locationHint='php_qn:%sSuccessTest.php::\PHPUnit\TestFixture\Repeat\SuccessTest::testTwo (repetition 2 of 2)' flowId='%d'] |
| 30 | +##teamcity[testFinished name='testTwo (repetition 2 of 2)' duration='%s' flowId='%d'] |
| 31 | +##teamcity[testSuiteFinished name='PHPUnit\TestFixture\Repeat\SuccessTest::testTwo' flowId='%d'] |
| 32 | +##teamcity[testSuiteFinished name='PHPUnit\TestFixture\Repeat\SuccessTest' flowId='%d'] |
0 commit comments