class DeltaTest::CLI::SpecsCommand
Public Instance Methods
invoke!()
click to toggle source
# File lib/delta_test/cli/specs_command.rb, line 9 def invoke! if stats.base_commit puts 'Base commit: %s' % [stats.base_commit] puts else raise StatsNotFoundError end list.load_table!(stats.table_file_path) list.retrive_changed_files!(stats.base_commit) print_specs end
list()
click to toggle source
# File lib/delta_test/cli/specs_command.rb, line 27 def list @list ||= RelatedSpecList.new end
print_specs()
click to toggle source
# File lib/delta_test/cli/specs_command.rb, line 31 def print_specs files = list.related_spec_files.to_a if files.any? puts files else puts '(no spec files to run)' end end
stats()
click to toggle source
# File lib/delta_test/cli/specs_command.rb, line 23 def stats @stats ||= Stats.new end