Method: Inspec::Profile#collect_tests
- Defined in:
- lib/inspec/profile.rb
#collect_tests(include_list = @controls) ⇒ Object
178 179 180 181 182 183 184 185 186 187 188 189 190 |
# File 'lib/inspec/profile.rb', line 178 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 |