forked from joshmfrankel/simplecov-check-action
-
Notifications
You must be signed in to change notification settings - Fork 0
/
spec_helper.rb
28 lines (25 loc) · 913 Bytes
/
spec_helper.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# frozen_string_literal: true
require "simplecov"
require "simplecov-json"
SimpleCov.formatters = SimpleCov::Formatter::MultiFormatter.new([
SimpleCov::Formatter::HTMLFormatter,
SimpleCov::Formatter::JSONFormatter
])
SimpleCov.start do
enable_coverage :branch
end
require "net/http"
require "webmock/rspec"
require "json"
require "pry"
require "time"
require "climate_control"
require_relative "../lib/coverage/check_action"
require_relative "../lib/coverage/configuration"
require_relative "../lib/coverage/utils/request"
require_relative "../lib/coverage/utils/retrieve_commit_sha"
require_relative "../lib/coverage/adapters/github_end_check_payload"
require_relative "../lib/coverage/adapters/simple_cov_result"
require_relative "../lib/coverage/adapters/simple_cov_json_result"
require_relative "../lib/coverage/formatters/start_check_run"
require_relative "../lib/coverage/formatters/end_check_run"