LoginSignup
0
0

More than 3 years have passed since last update.

gem"SimpleCov"で全てのファイルが計測対象にならない時の設定

Posted at

概要

SimpleCovを使用してテストカバレッジの出力を行なったが、vendor/engines以下のファイルが大体対象外となっていた。

specファイルが存在するものに関しては対象になっていたが、まだテストを書いていないファイルに関しては軒並み無視されていたので、カバレッジの計測対象に含める方法を調べた。

結果

.simplecov
SimpleCov.start 'rails' do
  track_files "{app,lib,vendor/engines}/**/*.rb"
end

参考

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0