The make check rule prepares test database and runs all tests found to succeed on my personal local deploy. This is a fraction of all available tests. The list of run tests should grow over time. In addition to the "check" rule, which does both db preparation and test run, there's a "check-prepared" rule that assumes a test database was already prepared and a "prepare-test-db" which only prepares the database.pull/243/head
parent
041c561593
commit
03f598edd9
@ -0,0 +1,19 @@
|
||||
WORKING_SPECS = \
|
||||
spec/lib \
|
||||
spec/models/layer_spec.rb \
|
||||
spec/models/tag_spec.rb \
|
||||
$(NULL)
|
||||
|
||||
all:
|
||||
@echo "Try make check"
|
||||
|
||||
prepare-test-db:
|
||||
# TODO skip this if db already exists ?
|
||||
bundle exec rake db:test:prepare
|
||||
|
||||
check-prepared:
|
||||
bundle exec rspec $(WORKING_SPECS)
|
||||
|
||||
check: prepare-test-db check-prepared
|
||||
|
||||
|
Loading…
Reference in new issue