Skip to content

Commit

Permalink
Add rake task to run indexer tests (#2538)
Browse files Browse the repository at this point in the history
  • Loading branch information
vinistock authored Sep 11, 2024
1 parent c8b6c83 commit 44f85d0
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,15 @@ require "ruby_lsp/check_docs"
Rake::TestTask.new(:test) do |t|
t.libs << "test"
t.libs << "lib"
t.test_files = FileList["test/**/*_test.rb", "lib/ruby_indexer/test/**/*_test.rb"].exclude("test/fixtures/prism/**/*")
t.test_files = FileList["test/**/*_test.rb"].exclude("test/fixtures/prism/**/*")
end

namespace :test do
Rake::TestTask.new(:indexer) do |t|
t.libs << "test"
t.libs << "lib"
t.test_files = FileList["lib/ruby_indexer/test/**/*_test.rb"]
end
end

RDoc::Task.new do |rdoc|
Expand All @@ -28,4 +36,4 @@ RuboCop::RakeTask.new

RubyLsp::CheckDocs.new(FileList["#{__dir__}/lib/ruby_lsp/**/*.rb"], FileList["#{__dir__}/misc/**/*.gif"])

task default: [:test]
task default: ["test:indexer", :test]

0 comments on commit 44f85d0

Please sign in to comment.