DonutWorks / Ari

0 stars 0 forks source link

no acceptance test w/ guard #400

Closed angdev closed 9 years ago

angdev commented 9 years ago

398

guard 에서는 all test를 돌려도 acceptance testing을 하지 않습니다. 여기에 #393 의 피드백도 반영했습니다.

CAPYBARA_DRIVER=selenium bundle exec rspec spec/acceptance

로 selenium으로 acceptance testing을 하실 수 있습니다.

테스트가 통과하지 않는 부분은 이상하네요 음.. 좀 더 살펴보아야 하겠습니다.

shaynekang commented 9 years ago

확인했습니다! 잘 돌아가네요. ㅎㅎ

테스트는 다시 시도해봤는데 성공하네요. branch를 왔다갔다 하다가 데이터베이스 스키마가 꼬여서 생긴 문제 같습니다. ㅠㅠ)

단위테스트, 인수테스트 각각 Pending 상태인 테스트가 하나씩 보이는데 이건 지우는게 좋을 것 같습니다. ㅎㅎ

# 인수테스트에서 나오는 Pending Test
Pending:
  user auth process lets me fail to kakao log in
    # Omniauth testing limitation
    # ./spec/acceptance/user_auth_spec.rb:43

Finished in 32.84 seconds (files took 7.35 seconds to load)
55 examples, 0 failures, 1 pending
# 단위테스트에서 나오는 Pending Test
Pending:
  Admin::Messages::SendMessageService should fail if notice is invalid
    # Admin can send messages without notice now.
    # ./spec/unit/services/admin/messages/send_message_service_spec.rb:39

Finished in 7.32 seconds (files took 7.41 seconds to load)
95 examples, 0 failures, 1 pending

수고하셨습니다~~ -_-)/~