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
Inconsistency between "phpunit --list-suites" and startTestSuite events #3188
Comments
Hello @vitanivanov ! A quick first reply: yes, the general behaviour you see is as expected. Although my work on sorting TestSuites and TestCases was for version 7.x, I do believe 6.x has much of the same handling. I will (try to) answer your question in more detail on Wednesday as I am currently travelling. Some quick first answers:
|
|
|
Is there an elegant way to actually to handle the event of starting the test suite I had specified? |
@vitanivanov You could always dig through |
@sebastianbergmann are there any issues/proposals/prototypes for refactoring the structures of suites, tests, dataprovidersuites? |
PHPUnit 7.2.6, I ended up with this condition:
|
@karser Thanks. However, parsing the relevant phpunit.xml file and checking for the suite inside it is a more reliable solution imo. |
This issue has been automatically marked as stale because it has not had activity within the last 60 days. It will be closed after 7 days if no further activity occurs. Thank you for your contributions. |
This issue has been automatically marked as stale because it has not had activity within the last 60 days. It will be closed after 7 days if no further activity occurs. Thank you for your contributions. |
@sebastianbergmann Has the situation changed? What would you recommend using instead of startTestSuite? |
I can only recommend to not use the |
@karser As @sebastianbergmann says, please use the new interfaces if you are creating new functionality. I am currently refactoring the old TestDox printer to get existing functionality back that was lost due to new execution reordering features. It is a messy little project. Afterwards I will work on a cleaner If you have any suggestions or wishes, feel free to drop a proposal here at the RFC ticket for the TestHook interfaces: #3390 |
This issue has been automatically marked as stale because it has not had activity within the last 60 days. It will be closed after 7 days if no further activity occurs. Thank you for your contributions. |
This issue has been automatically closed because it has not had activity since it was marked as stale. Thank you for your contributions. |
Preconditions
Actual behavior
PHPUnit 6.5.8 by Sebastian Bergmann and contributors.
Available test suite(s):
PHPUnit 6.5.8 by Sebastian Bergmann and contributors.
TestSuite '' started.
TestSuite 'Unit' started.
TestSuite 'Tests\Unit\RegistrationServiceTest' started.
.. 2 / 2 (100%)
Expected behavior
I do not expect going through startTestSuite() multiple when I have explicitly set the test suite I want to execute.
The text was updated successfully, but these errors were encountered: