2014-09-23 1 views
1

두 개의 spec 폴더가 있습니다. 첫 번째는/spec이며 일반적으로 볼 수 있습니다. 나는/live_integration_tests라는 또 다른 사람이 있습니다. rspec -I live_integration_tests ./live_integration_tests을 실행하면 실제로는 spec/spec_helper.rb 파일도 가져옵니다. rspec이 spec_helper 폴더의 spec_helper 파일을 무시하도록하는 방법이 있습니까?다른 테스트를 실행할 때 spec 디렉토리에서 spec_helper로드 중지

나는 또한 rspec -O live_integration_tests/spec_helper.rb ./live_integration_tests 을 시도했지만 그 중 하나도 수행하지 않았습니다. 도움의 다른 모든 것은 매우 유망 해 보이지 않았습니다.

+0

모든 테스트 파일에서'require 'spec_helper''을 사용하고 있습니까? – BroiSatse

+0

예, 'require'spec_helper '처럼 보입니다. –

답변

1

이 문제를 해결했습니다.

rspec --default-path ./live_integration_tests은 ./live_integration_test 폴더의 rspec spec_helper 만 실행하고 ./spec의 기본값은 실행하지 않습니다.

관련 문제