Fix to capture all the tests (it/its) within a control (#6912)

Signed-off-by: Nik08 <nikita.mathur@progress.com>
This commit is contained in:
Nikita Mathur 2024-01-24 12:09:20 +05:30 committed by GitHub
parent 7ac8ccf7c1
commit 7ac0f3d9d9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -145,7 +145,7 @@ module Inspec
get_check_example(m, a, b)
end.compact
examples.map { |example| total_checks += example.examples.count }
examples.map { |example| total_checks += example.descendant_filtered_examples.count }
unless control_describe_checks.empty?
# controls with empty tests are avoided