@@ -85,11 +85,11 @@ describe('Pest ProblemMatcher Text', () => {
8585 } ) ;
8686
8787 it ( 'testSuiteStarted tests/Fixtures/CollisionTest.php' , ( ) => {
88- resultShouldBe ( `##teamcity[testSuiteStarted name='Tests\\Unit \\CollisionTest' locationHint='pest_qn://tests/Fixtures/CollisionTest.php' flowId='68573']` , {
88+ resultShouldBe ( `##teamcity[testSuiteStarted name='Tests\\Fixtures \\CollisionTest' locationHint='pest_qn://tests/Fixtures/CollisionTest.php' flowId='68573']` , {
8989 event : TestResultEvent . testSuiteStarted ,
9090 id : 'tests/Fixtures/CollisionTest.php' ,
9191 testId : 'tests/Fixtures/CollisionTest.php' ,
92- name : 'Tests\\Unit \\CollisionTest' ,
92+ name : 'Tests\\Fixtures \\CollisionTest' ,
9393 file : 'tests/Fixtures/CollisionTest.php' ,
9494 flowId : 68573 ,
9595 } ) ;
@@ -149,22 +149,22 @@ describe('Pest ProblemMatcher Text', () => {
149149 } ) ;
150150
151151 it ( 'testSuiteFinished tests/Fixtures/CollisionTest.php' , ( ) => {
152- resultShouldBe ( `##teamcity[testSuiteFinished name='Tests\\Unit \\CollisionTest' flowId='68573']` , {
152+ resultShouldBe ( `##teamcity[testSuiteFinished name='Tests\\Fixtures \\CollisionTest' flowId='68573']` , {
153153 event : TestResultEvent . testSuiteFinished ,
154154 id : 'tests/Fixtures/CollisionTest.php' ,
155155 testId : 'tests/Fixtures/CollisionTest.php' ,
156- name : 'Tests\\Unit \\CollisionTest' ,
156+ name : 'Tests\\Fixtures \\CollisionTest' ,
157157 file : 'tests/Fixtures/CollisionTest.php' ,
158158 flowId : 68573 ,
159159 } ) ;
160160 } ) ;
161161
162162 it ( 'testSuiteStarted tests/Fixtures/DirectoryWithTests/ExampleTest.php' , ( ) => {
163- resultShouldBe ( `##teamcity[testSuiteStarted name='Tests\\Unit \\DirectoryWithTests\\ExampleTest' locationHint='pest_qn://tests/Fixtures/DirectoryWithTests/ExampleTest.php' flowId='68573']` , {
163+ resultShouldBe ( `##teamcity[testSuiteStarted name='Tests\\Fixtures \\DirectoryWithTests\\ExampleTest' locationHint='pest_qn://tests/Fixtures/DirectoryWithTests/ExampleTest.php' flowId='68573']` , {
164164 event : TestResultEvent . testSuiteStarted ,
165165 id : 'tests/Fixtures/DirectoryWithTests/ExampleTest.php' ,
166166 testId : 'tests/Fixtures/DirectoryWithTests/ExampleTest.php' ,
167- name : 'Tests\\Unit \\DirectoryWithTests\\ExampleTest' ,
167+ name : 'Tests\\Fixtures \\DirectoryWithTests\\ExampleTest' ,
168168 file : 'tests/Fixtures/DirectoryWithTests/ExampleTest.php' ,
169169 flowId : 68573 ,
170170 } ) ;
@@ -192,12 +192,12 @@ describe('Pest ProblemMatcher Text', () => {
192192 } ) ;
193193 } ) ;
194194
195- it ( 'testSuiteFinished tests/Fixtures/CollisionTest .php' , ( ) => {
196- resultShouldBe ( `##teamcity[testSuiteFinished name='Tests\\Unit \\DirectoryWithTests\\ExampleTest' flowId='68573']` , {
195+ it ( 'testSuiteFinished tests/Fixtures/DirectoryWithTests/ExampleTest .php' , ( ) => {
196+ resultShouldBe ( `##teamcity[testSuiteFinished name='Tests\\Fixtures \\DirectoryWithTests\\ExampleTest' flowId='68573']` , {
197197 event : TestResultEvent . testSuiteFinished ,
198198 id : 'tests/Fixtures/DirectoryWithTests/ExampleTest.php' ,
199199 testId : 'tests/Fixtures/DirectoryWithTests/ExampleTest.php' ,
200- name : 'Tests\\Unit \\DirectoryWithTests\\ExampleTest' ,
200+ name : 'Tests\\Fixtures \\DirectoryWithTests\\ExampleTest' ,
201201 file : 'tests/Fixtures/DirectoryWithTests/ExampleTest.php' ,
202202 flowId : 68573 ,
203203 } ) ;
@@ -466,4 +466,26 @@ describe('Pest ProblemMatcher Text', () => {
466466 flowId : 68573 ,
467467 } ) ;
468468 } ) ;
469+
470+ describe ( 'Pest v2' , ( ) => {
471+ it ( 'testSuiteStarted phpunit.xml and locationHint prefix is file://' , ( ) => {
472+ resultShouldBe ( `##teamcity[testSuiteStarted name='${ pestProject ( 'phpunit.xml' ) } ' locationHint='file://Example (Tests\\Feature\\Example)' flowId='57317']` , {
473+ event : TestResultEvent . testSuiteStarted ,
474+ id : pestProject ( 'phpunit.xml' ) ,
475+ testId : pestProject ( 'phpunit.xml' ) ,
476+ name : pestProject ( 'phpunit.xml' ) ,
477+ flowId : 57317 ,
478+ } ) ;
479+ } ) ;
480+
481+ it ( 'testSuiteStarted Test Suite and locationHint prefix is file://' , ( ) => {
482+ resultShouldBe ( `##teamcity[testSuiteStarted name='Test Suite' locationHint='file://Example (Tests\\Feature\\Example)' flowId='57317']` , {
483+ event : TestResultEvent . testSuiteStarted ,
484+ id : 'Test Suite' ,
485+ testId : 'Test Suite' ,
486+ name : 'Test Suite' ,
487+ flowId : 57317 ,
488+ } ) ;
489+ } ) ;
490+ } ) ;
469491} ) ;
0 commit comments