You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have copied the test structure from Pinkary, with an Arch folder and an ArchTest.php file in the root. I have added a new testsuite to phpunit.xml with the folder and file. The file is not included when running pest --arch, until I add it to the testsuite with a backslash.
<testsuitename="Arch">
<directory>tests/Arch</directory>
<file>tests/ArchTest.php</file>
<file>tests\ArchTest.php</file><!-- If I add this it automatically runs on Windows -->
</testsuite>
I believe this to be a Windows issue because of the backward slash. Also, it's possible that it is a PHPUnit issue, but I thought that I'd open it here first and get some feedback.
How to Reproduce
Install Pinkary project on Windows machine
Run pest --arch and see that ArchTest.php is not included
Add <file>tests\ArchTest.php</file> with backslash to testsuite in phpunit.xml
Run pest --arch again and see that the file is included
What Happened
I have copied the test structure from Pinkary, with an Arch folder and an
ArchTest.php
file in the root. I have added a new testsuite tophpunit.xml
with the folder and file. The file is not included when runningpest --arch
, until I add it to the testsuite with a backslash.I believe this to be a Windows issue because of the backward slash. Also, it's possible that it is a PHPUnit issue, but I thought that I'd open it here first and get some feedback.
How to Reproduce
pest --arch
and see thatArchTest.php
is not included<file>tests\ArchTest.php</file>
with backslash to testsuite inphpunit.xml
pest --arch
again and see that the file is includedSample Repository
https://github.com/pinkary-project/pinkary.com
Pest Version
3.5.1
PHP Version
8.3.13
Operation System
Windows
Notes
Running without backslash:
Running with backslash:
The text was updated successfully, but these errors were encountered: