What
When developing #5934, we found a problem: when running tests for the decidim-proposals engine, where we know code from decidim-core is executed, the code in decidim-core was not considered as covered. This reduced the % of covered code in the results. This was reported in simplecov-ruby/simplecov#885.
The Simplecov maintainers have worked on this issue and have released a PR that should fix the problem: simplecov-ruby/simplecov#894. We should try this in our repo and see if it actually fixed it.
Steps to reproduce
- Use
simplecov from master branch
bundle install
bin/rake test_app
CI=1 SIMPLECOV=true bin/rspec ./decidim-proposals/spec/system/proposals_spec.rb:50
- Check the
coverage/coverage.xml file. With the fix, this file should include files outside decidim-proposals
What
When developing #5934, we found a problem: when running tests for the
decidim-proposalsengine, where we know code fromdecidim-coreis executed, the code indecidim-corewas not considered as covered. This reduced the % of covered code in the results. This was reported in simplecov-ruby/simplecov#885.The Simplecov maintainers have worked on this issue and have released a PR that should fix the problem: simplecov-ruby/simplecov#894. We should try this in our repo and see if it actually fixed it.
Steps to reproduce
simplecovfrommasterbranchbundle installbin/rake test_appCI=1 SIMPLECOV=true bin/rspec ./decidim-proposals/spec/system/proposals_spec.rb:50coverage/coverage.xmlfile. With the fix, this file should include files outsidedecidim-proposals