From 48501198874fa93f2ef8e05c9238dfddc2cc2636 Mon Sep 17 00:00:00 2001 From: Eric Freese Date: Thu, 19 Jan 2017 00:59:26 -0700 Subject: [PATCH] Add separate test task for RSpec --- Makefile | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index fde3691..27d02db 100644 --- a/Makefile +++ b/Makefile @@ -22,7 +22,7 @@ PLUGIN_TARGET := zsh-autosuggestions.zsh SHUNIT2 := $(VENDOR_DIR)/shunit2/2.1.6 STUB_SH := $(VENDOR_DIR)/stub.sh/stub.sh -TEST_PREREQS := \ +UNIT_TEST_PREREQS := \ $(SHUNIT2) \ $(STUB_SH) @@ -43,5 +43,10 @@ clean: rm $(PLUGIN_TARGET) .PHONY: test -test: all $(TEST_PREREQS) - script/test_runner.zsh $(TESTS) +test: rspec unit_test + +unit_test: all $(UNIT_TEST_PREREQS) + script/test_runner.zsh $(UNIT_TESTS) + +rspec: all + bundle exec rspec $(RSPEC_TESTS)