Browse Source

Allow make initiator to define the pattern of tests to be ran.

tags/0.3.0^2
Bèr Kessels 1 year ago
parent
commit
53e3506a80
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      Makefile

+ 2
- 1
Makefile View File

@@ -1,5 +1,6 @@
CMD_PREFIX=bundle exec
CONTAINER_NAME=hours_development
TEST_FILES_PATTERN ?= **/*_test.rb

# You want latexmk to *always* run, because make does not have all the info.
# Also, include non-file targets in .PHONY so they are run regardless of any
@@ -17,7 +18,7 @@ db:
# CUSTOM BUILD RULES
test: export APP_ENV=test
test:
$(CMD_PREFIX) ruby -I lib:test:. -e "Dir.glob('**/*_test.rb') { |f| require(f) }"
$(CMD_PREFIX) ruby -I lib:test:. -e "Dir.glob('$(TEST_FILES_PATTERN)') { |f| require(f) }"
lint:
$(CMD_PREFIX) rubocop


Loading…
Cancel
Save