By default rails test
does not run system tests, and one must invoke rails test:system
in order to run the system tests. Given that one is using Guard, what is the proper addition to the Guardfile such that guard will:
- Run all the tests, including the system tests.
- Run the appropriate system test when it changes.
I have tried something like:
guard :minitest, spring: true do
# ...
watch(%r{^test/system\/?(.*)_test\.rb$}) { 'test' }
# ...
end
But it seems I am not educated in configuring Guard.
Aucun commentaire:
Enregistrer un commentaire