class TestLauncher::Frameworks::ExUnit::Runner

Public Instance Methods

by_line_number(test_case) click to toggle source
# File lib/test_launcher/frameworks/ex_unit.rb, line 52
def by_line_number(test_case)
  %{cd #{test_case.app_root} && mix test #{test_case.file}:#{test_case.line_number}}
end
multiple_examples_same_file(test_cases) click to toggle source
# File lib/test_launcher/frameworks/ex_unit.rb, line 60
def multiple_examples_same_file(test_cases)
  one_or_more_files(test_cases.uniq {|tc| tc.file})
end
multiple_examples_same_root(test_cases) click to toggle source
# File lib/test_launcher/frameworks/ex_unit.rb, line 64
def multiple_examples_same_root(test_cases)
  one_or_more_files(test_cases.uniq {|tc| tc.file})
end
one_or_more_files(test_cases) click to toggle source
# File lib/test_launcher/frameworks/ex_unit.rb, line 68
def one_or_more_files(test_cases)
  %{cd #{test_cases.first.app_root} && mix test #{test_cases.map(&:file).join(" ")}}
end
single_example(test_case) click to toggle source
# File lib/test_launcher/frameworks/ex_unit.rb, line 56
def single_example(test_case)
  by_line_number(test_case)
end