You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This breaks coverage reports (for example for CodeBuild) because of missing rails/ and web/ prefixes in all paths.
We have found a workaround with
# rails/test/support/coverage.rb, required in test_helper.rb:SimpleCov.start'rails'do# test file paths need to include `rails/...` for coverage reportrootFile.expand_path('../../..',__dir__)# .. but move the coverage reports back into `rails/test/coverage`coverage_dir'rails/coverage'end
Say you have a monorepo with
This breaks coverage reports (for example for CodeBuild) because of missing
rails/
andweb/
prefixes in all paths.We have found a workaround with
but that's rather cumbersome.
The issue is that this is not configurable:
simplecov-lcov/lib/simplecov-lcov.rb
Line 85 in 61b771f
Would you be open for a PR? If so, any preferred config API? Maybe simply like this?
Or should this be a SimpleCov PR?
The text was updated successfully, but these errors were encountered: