-
Notifications
You must be signed in to change notification settings - Fork 11
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
Default to regular order, enable random with flag #3
Comments
I think this would make more sense if phpunit integrated this functionality. Right now, phpunit-randomizer is an optional package, and if you're installing it it seems to me you want the randomizing behaviour. Expecting the user to add an extra flag after explicitly installing this package is counter-intuitive. |
The best solution would be to be integrated with PHPUnit, but I don't think that's going to happen any time soon. |
I just released a new major version with this behaviour. Version 1.* keeps the old behaviour, but 2.* versions will act as PHPUnit by default, unless '--order rand' is specified. README has been updated to reflect these changes. |
Just throwing an idea out:
What do you think about defaulting to regular order, and enabling random with a flag.
That way, people can use this package as a wrapper around phpunit, and run it in the same order as usual, and enable random order whenever you want to do that.
Again, with inspiration from RSpec, I suggest we use "--order rand":
https://relishapp.com/rspec/rspec-core/docs/command-line/order-new-in-rspec-core-2-8
The text was updated successfully, but these errors were encountered: