1
우리는 뭔가 다른 것을 사용할 수 있지만 테스트를 위해 Riot (https://github.com/thumblemonks/riot)를 사용하고 있습니다.Ruby/Rails/Riot에서 프로그래밍 방식으로 테스트 결과에 액세스
나는 테스트 출력과 같이 얻을 : 내가 좋아하는 것
Running a test
+ something works
+ something else works
- something failed
> ruby my_test_file.rb
프로그래밍이 정보에 액세스 할 수 있습니다. 다음과 같이 입력하십시오 :
test = TestClass.load("my_test_file.rb") result = test.run result.errors # some array