Nitrokey / pynitrokey

Python client for Nitrokey devices
Apache License 2.0
98 stars 27 forks source link

nk3 test: Add --deny-skipped option #375

Open robin-nitrokey opened 1 year ago

robin-nitrokey commented 1 year ago

This patch adds an option to the nk3 test subcommand that causes one or more skipped tests to fail the test run. This can be used in production to make sure that all selected tests are actually executed.

Open questions:

Changes

Checklist

Test Environment and Execution

jans23 commented 1 year ago

Should --all automatically activate this flag?

IMO yes, this is what I expect from it.

Why to introduce --deny-skipped additionally?

robin-nitrokey commented 1 year ago

--all decides which tests are executed, and --deny-skipped how the results are interpreted. The reasoning behind the skipped state is that we don’t want to indicate failures to end users that are not really a failure.