-
Notifications
You must be signed in to change notification settings - Fork 683
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
InSpec output for summary needs to count controls #852
Comments
wip in this branch: https://github.com/chef/inspec/compare/vj/inspec-controls-count |
Count controls in the summary output. Fix #852
Needs to be addressed as of current master. |
Currently we have:
Multiple decisions:
Decision
Reason: there is so many different things to include and arguments for/against it. But ultimately, whatever we put in this API, we also have to maintain over time. That also means, that things might change and break you. The big problem in here: This whole field is really just a data mangling/processing operation which we shouldn't do in core inspec. Let's tackle recommendations on how to do this separately. Counting controls and tests in CLI output:
Ideally we will never see it this way, as mixed control/non-control profiles are incredibly rare in the real world. For only-control cases:
For only-tests cases (no control was defined):
|
Currently InSpec counts "examples", i.e. so-called RSpec examples.
We want to drop that as a visible concept and as a term in our vocabulary book.
InSpec counts controls and tests. Controls may have a number of tests. Tests may exist without controls (albeit: internally we map them to anonymous controls anyway).
InSpec's output reflects RSpec examples (i.e. tests): Count of failed, passed, and skipped tests.
Suggestion
Number of controls (total), number of passed controls, failed controls, number of skipped controls.
(Optional maybe: number of tests, passed tests, failed tests, skipped tests. (May not be necessary!!))
Controls that exist but don't have any tests, is counted as a control in the list of total controls, but not as a passed or failed or skipped control.
The text was updated successfully, but these errors were encountered: