class TestLauncher::Queries::PathQuery
Public Instance Methods
command()
click to toggle source
# File lib/test_launcher/queries.rb, line 193 def command return if test_cases.empty? if one_file? shell.notify "Found #{pluralize(file_count, "file")}." runner.single_file(test_cases.first) elsif request.run_all? shell.notify "Found #{pluralize(file_count, "file")}." runner.multiple_files(test_cases) else shell.notify "Found #{pluralize(file_count, "file")}." shell.notify "Running most recently edited. Run with '--all' to run all the tests." runner.single_file(most_recently_edited_test_case) end end
files_found_by_path()
click to toggle source
# File lib/test_launcher/queries.rb, line 215 def files_found_by_path @files_found_by_path ||= searcher.test_files(request.search_string) end
test_cases()
click to toggle source
# File lib/test_launcher/queries.rb, line 209 def test_cases @test_cases ||= files_found_by_path.map { |file_path| request.test_case(file: file_path, request: request) } end