DEV: run plugin tests in autospec

DEV: run plugin tests in autospec

From 7ba681383d9f4a02ba3c5c71867865239c89b467 Mon Sep 17 00:00:00 2001
From: Sam <sam.saffron@gmail.com>
Date: Fri, 23 Nov 2018 11:27:08 +1100
Subject: [PATCH] DEV: run plugin tests in autospec


diff --git a/lib/autospec/qunit_runner.rb b/lib/autospec/qunit_runner.rb
index 4adafeb..66f87a8 100644
--- a/lib/autospec/qunit_runner.rb
+++ b/lib/autospec/qunit_runner.rb
@@ -22,6 +22,8 @@ module Autospec
     reload(%r{^test/javascripts/(helpers|mixins)/.+\.js(\.es6)?$})
     reload("test/javascripts/test_helper.js")
 
+    watch(%r{^plugins/.*/test/.+\.js.es6$})
+
     require "socket"
 
     class ChromeNotInstalled < StandardError; end

GitHub

1 Like