Method: Inspec::Profile#collect_tests
- Defined in:
- lib/inspec/profile.rb
#collect_tests(include_list = @controls) ⇒ Object
137 138 139 140 141 142 143 144 145 146 147 148 149 |
# File 'lib/inspec/profile.rb', line 137 def collect_tests(include_list = @controls) if !@tests_collected locked_dependencies.each(&:collect_tests) tests.each do |path, content| next if content.nil? || content.empty? abs_path = source_reader.target.abs_path(path) @runner_context.load_control_file(content, abs_path, nil) end @tests_collected = true end filter_controls(@runner_context.all_rules, include_list) end |