Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
要件があります。Simplecov はこの行を出力する必要があります
カバレッジ レポートが生成されました ...
テスト スイートが緑色の場合のみ。
これは可能ですか?
これが私の初期化子です
SimpleCov.start do add_filter "/test/" coverage_dir "/tmp/coverage/" end
SimpleCov には、メッセージをスキップできる at_exit フックがあります。
SimpleCov.at_exit do SimpleCov.result.format! if all_test_passed end
しかし、「all_test_passed」の回避策が見つかりませんでした。すべてのテストに合格したかどうかを確認できるように、要約を取得する方法が見つかりませんでした。