-
Notifications
You must be signed in to change notification settings - Fork 21
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
"--list-tests" should respect the selected profile and settings by "--test" #396
Comments
For context, it's possible to use --dump-profile to query:
zonemaster-cli --dump-profile | jq .test_cases
zonemaster-cli --dump-profile --profile custom-profile.json | jq .test_cases A notable difference from the --list-tests feature is that --dump-profile only outputs the names of test cases, not test modules. |
That could be a work-around, but that is not documented, and it does not handle settings by "--test" (see updated description above). And it is more complex for the users. |
That could be fixed.
It will once #359 is merged.
We should definitely keep the --list-tests option, and I agree that it makes sense to make it respect --profile and --test. |
I have two remarks on the current suggestion in the issue description.
|
That could be fine.
That could be fine too. If both |
Actually, --dump-profile already respects --test in #359 without further updates.
Thanks for clarifying. I feel really good about having --list-tests respect --profile and --test, and even better about also having it omit disabled test cases and test modules with only disabled test cases. |
I think it will be enough to include the test cases, and not the test modules. |
Yeah, maybe. That certainly has its merits. |
zonemaster-cli --list-tests
lists all test modules and all test cases in each test module.--profile=PROFILE
is added to the command, but the selected profile is ignored.--test=EXPR
setting (based on More flexible --test option #359) but it does not respect that setting, i.e. with "--test=basic" only tests in Basic module will be run, butzonemaster-cli --list-tests --test=basic
will still list all defined test cases.I want to have answer to the following question:
I suggest that disabled test caes are marked as such, e.g. the following output:
The text was updated successfully, but these errors were encountered: