Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not detect changes when I have code and tests in the same directory #148

Open
ticviking opened this issue Apr 14, 2017 · 0 comments
Open

Comments

@ticviking
Copy link

ticviking commented Apr 14, 2017

I am using guard-minitest to practice code katas with what I thought was a pretty simple setup.

the directory looks like

Gemfile
Guardfile
kata.rb
kata_spec.rb

My gemfile is

gem 'minitest'
gem 'minitest-reporters'
gem 'guard'
gem 'guard-minitest'

with the following guardfile

guard :minitest, test_folders:"." do
  watch(%r{(.*)_spec\.rb$})
  watch(%r{(.+)\.rb$}) {|m| "#{m[0]}_spec.rb"}
end

kata_spec.rb looks like this

require 'minitest/autorun'
require 'minitest/reporters'
MiniTest::Reporters.use! Minitest::Reporters::SpecReporter.new
require'./kata'

# Red -> Green -> Refactor

with kata.rb empty.

and the spec runs fine when I first do bundle exec guard but seems to stop execution when I edit any of the files.

I can verify that the files I changes are being detected by guard when I set -d and LISTEN_GEM_DEBUGGING

when I trigger minitest from the guard prompt everything works as expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant