-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(tests): add code coverage reporting (#400)
* feat(tests): add code coverage reporting * fix: correct coverage path * feat: add if-no-files-found on upload-artifact * refactor: use simplecov-lcov * chore: fixt lints * fix: remove test filters * feat(README): add badge * feat: add sentry_job spec * chore: add some tests * fix: tests * fix(activity_resource_spec): fix syntax error * fix: tests * feat: add some tests to increase coverage * feat(groups_controller_spec): add filters test * refactor: improve group filters * feat: user ical coverage * fix: readd it_behaves_like * chore: remove redundant code * refactor: try tokenless report uploading * chore: comment test * refactor: remove irrelevant test * chore: update codecov-action * Update README.md Co-authored-by: Matteo Bronkhorst <[email protected]> * Fixed lint 1/2 * Fixed lint 2/2 --------- Co-authored-by: lodewiges <[email protected]> Co-authored-by: Matteo Bronkhorst <[email protected]>
- Loading branch information
1 parent
b4437f5
commit 153319a
Showing
15 changed files
with
232 additions
and
126 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
require 'rails_helper' | ||
|
||
RSpec.describe SentryJob, type: :job do | ||
describe '#perform' do | ||
let(:job) { described_class.new } | ||
|
||
before do | ||
allow(Raven).to receive(:send_event) | ||
job.perform('Example event') | ||
end | ||
|
||
it { expect(Raven).to have_received(:send_event).with('Example event') } | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.