Module: Liri::Task

Defined in:
lib/task.rb

Class Method Summary collapse

Class Method Details

.tests_count(source_code_folder_path) ⇒ Object



13
14
15
# File 'lib/task.rb', line 13

def tests_count(source_code_folder_path)
  tests_files(source_code_folder_path).size
end

.tests_files(source_code_folder_path) ⇒ Object



8
9
10
11
# File 'lib/task.rb', line 8

def tests_files(source_code_folder_path)
  source_code = Liri::Common::SourceCode.new(source_code_folder_path,"", "", Liri.compression_class, Liri.unit_test_class)
  source_code.all_tests
end