Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support set the PHPUnit config files path or directory #313

Closed
zengbo opened this issue Mar 31, 2023 · 7 comments
Closed

Support set the PHPUnit config files path or directory #313

zengbo opened this issue Mar 31, 2023 · 7 comments
Assignees
Labels
feature New feature or request

Comments

@zengbo
Copy link

zengbo commented Mar 31, 2023

In my project, there are many PHPUnit config files in a directory. I hope the PHP tools can search the specific directory, and discovery all tests in the config files.

@jakubmisek
Copy link
Member

@zengbo thank you for reporting the issue.

The PHP extension should already process all the phpunit.xml{.dist} files and corresponding tests.

May I ask for more details?

@zengbo
Copy link
Author

zengbo commented Apr 1, 2023

Our PHPUnit config file names like phpunit-{functions}.xml

@jakubmisek
Copy link
Member

Our PHPUnit config file names like phpunit-{functions}.xml

That would be the problem. I always thought it has to be phpunit.xml... but that will be easy to fix.

@zengbo
Copy link
Author

zengbo commented Apr 2, 2023

my project directory struct likes this:

root
|- tests
    |- phpunit-a.xml
    |- phpunit-b.xml
    |- …

@jakubmisek
Copy link
Member

Thank you @zengbo

The next update allows having custom PHPUnit XML config files: **/phpunit*.xml

They all will be listed in the Testing panel.

@jakubmisek jakubmisek self-assigned this Apr 2, 2023
@jakubmisek jakubmisek added the feature New feature or request label Apr 2, 2023
@zengbo
Copy link
Author

zengbo commented Apr 4, 2023

Thanks, the pre-version 1.32.12920 is ok

@jakubmisek
Copy link
Member

thank you for trying the pre-release @zengbo !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants