From 1ce8b7def8efa9d6f5704faf6d138bb9aeeb8709 Mon Sep 17 00:00:00 2001 From: Matt Palmer Date: Wed, 9 May 2018 12:32:48 +1000 Subject: [PATCH] Run a plugin's integration tests via autospec when anything changes --- lib/autospec/rspec_runner.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/autospec/rspec_runner.rb b/lib/autospec/rspec_runner.rb index 03b49f63d84..d09acd54500 100644 --- a/lib/autospec/rspec_runner.rb +++ b/lib/autospec/rspec_runner.rb @@ -23,6 +23,7 @@ module Autospec watch(%r{^plugins/.*/discourse-markdown/.*\.js\.es6$}) { "spec/components/pretty_text_spec.rb" } watch(%r{^plugins/.*/spec/.*\.rb}) + watch(%r{^(plugins/.*)/(lib|app)}) { |m| "#{m[1]}/spec/integration" } watch(%r{^(plugins/.*)/lib/(.*)\.rb}) { |m| "#{m[1]}/spec/lib/#{m[2]}_spec.rb" } RELOADERS = Set.new