spec/javascripts/spec.js.coffee
に3つのテストを含む1つのスペックファイルを設定しましたspec/javascripts
。ブラウザ内でジャスミンを実行すると、3つのテストが実行されます。
私がguardを実行し、guard-jasmineを起動して実行すると、次のようにすべてのテストが検出されて実行されます。
$ bundle exec guard
Guard uses GNTP to send notifications.
Guard is now watching at '/workpath'
Guard::Jasmine starts Unicorn test server on port 52512 in development environment.
Waiting for Jasmine test runner at http://localhost:52512/jasmine
Run all Jasmine suites
Run Jasmine suite at http://localhost:52512/jasmine
Finished in 0.013 seconds
3 specs, 0 failures
Done.
しかし、guard-jasmine
ターミナルから実行すると、仕様が見つかりません。
$ guard-jasmine
Guard::Jasmine starts Unicorn test server on port 53307 in test environment.
Waiting for Jasmine test runner at http://localhost:53307/jasmine
Run all Jasmine suites
Run Jasmine suite at http://localhost:53307/jasmine
Finished in 0.001 seconds
0 specs, 0 failures
Done.
Guard::Jasmine stops server.
CLIランナーが私の仕様を見つけるのを助けるために何を変更する必要があるかについてのアイデアはありますか?
ありがとう。
編集:関連するGuardfile情報を追加します:
guard :jasmine, timeout: 120, server_timeout: 120, server_env: "test" do
watch(%r{spec/javascripts/spec\.(js\.coffee|js|coffee)$}) { 'spec/javascripts' }
watch(%r{spec/javascripts/.+_spec\.(js\.coffee|js|coffee)$})
watch(%r{app/assets/javascripts/(.+?)\.(js\.coffee|js|coffee)(?:\.\w+)*$}) { |m| "spec/javascripts/#{ m[1] }_spec.#{ m[2] }" }
end