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

phpunit group/exclude-group options not working when using phpunit-slicer #2

Open
Jerome1337 opened this issue Dec 19, 2018 · 3 comments

Comments

@Jerome1337
Copy link

Jerome1337 commented Dec 19, 2018

When I use phpunit-slicer to slice my tests, these options are not working.

--group foo
--exclude-group bar

It would be great to slice tests of a given group an allow to slice tests that are not inside a given group

This is funny because all the other phpunit options I use are working.

@ecourtial
Copy link
Contributor

@Jerome1337 Is this issue still here with the last version of the library?

@mfn
Copy link

mfn commented Apr 6, 2022

I think I've a similar issue, in that running tests in a random order (as configured in the XML in my case: executionOrder="random"), is not honored.

@ecourtial
Copy link
Contributor

That's weird.

Both issues are not supposed to happen. If we look at the TextUI/Command.php class in the handleArguments method, which we did not override, we clearly see that the presence of options or of a configuration file is checked 🤔

I am curious to know if @Jerome1337 still has the issue.

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

No branches or pull requests

3 participants