Skip to content

Commit 46c86cd

Browse files
committed
Move to new coverage approach
1 parent f9b35a2 commit 46c86cd

File tree

80 files changed

+49
-112
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

80 files changed

+49
-112
lines changed

.github/workflows/plugin-tests.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,12 @@ jobs:
141141
142142
- name: Plugin RSpec with Coverage
143143
if: matrix.build_type == 'backend' && steps.check_spec.outputs.files_exists == 'true'
144-
run: SIMPLECOV=1 bin/rake plugin:spec[${{ steps.repo-name.outputs.value }}]
144+
run: |
145+
if [ -e plugins/${{ steps.repo-name.outputs.value }}/.simplecov ]
146+
cp plugins/${{ steps.repo-name.outputs.value }}/.simplecov .simplecov
147+
export COVERAGE=1
148+
fi
149+
bin/rake plugin:spec[${{ steps.repo-name.outputs.value }}]
145150
146151
- name: Plugin QUnit
147152
if: matrix.build_type == 'frontend' && steps.check_qunit.outputs.files_exists == 'true'

.simplecov

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
plugin = "discourse-custom-wizard"
2+
3+
SimpleCov.configure do
4+
track_files "plugins/#{plugin}/**/*.rb"
5+
add_filter { |src| !(src.filename =~ /(\/#{plugin}\/app\/|\/#{plugin}\/lib\/)/) }
6+
end
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)