-
Notifications
You must be signed in to change notification settings - Fork 67
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
Surprises wrt --state option vs. file arguments #35
Comments
Faced into problem
To my mind that was bad idea to allow There is already ability There is not clear how these two will be merged: |
also
Here I expect that only failed tests from To my mind provided list of tests must be filtered by |
Also this belongs to
As you can see failed test are not run first. Next also has not effect:
Here I expect to run most recently failed first, then slowest, then save test result This occur when Even if the content of
and I do:
as you can see testing do not run |
What --state does when combined with file arguments is underdocumented
and sometimes surprising. The following in the Test-Harness
distribution directory:
[0] because there are tests on disk and they would be run with
state=save alone; this is one of the cases where it would be helpful
to just run all tests from disk.
[1] what happens is that the argument t/parse.t is merged with all
files in .prove. Apparently there is no way to run a subset of the
known tests with state options without editing the .prove file.
[2] Given that surprise [0] above refused to work, it's now
surprising that this incantation does the right thing
[3] keyword "all" apparently does not mean all tests on disk. Not
mentioned in the docs.
I believe the currently undocumented rules are:
(1) as long as no statefile exists, any combination of state arguments
turn prove into a noop unless there are explicit file or directory
arguments on the commandline. E.g.
(2) if a statefile exists, the set of tests to be considered to be run
is a union of the test files in the state file and files or
directories on the command line. From this union set all tests on
the command line are run unconditionally while files from the
statefile are run according to the rule. E.g.
(3) the keyword "all" refers to the files in the statefile, not to the
files on disk
I'm unsure whether one would prefer the rules to change or get these
rules documented. I find the rules hard to understand and to document
and also disputable.
The text was updated successfully, but these errors were encountered: