File tree Expand file tree Collapse file tree 2 files changed +9
-6
lines changed
Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Original file line number Diff line number Diff line change 55if ENV [ "COVERAGE" ] == "true"
66 require "simplecov"
77 require "simplecov_json_formatter"
8+ SimpleCov . start do
9+ command_name "Job #{ ENV [ "GITHUB_RUN_NUMBER" ] } " if ENV [ "GITHUB_RUN_NUMBER" ]
810
9- SimpleCov . formatters = SimpleCov ::Formatter ::MultiFormatter . new ( [
10- SimpleCov ::Formatter ::HTMLFormatter ,
11- SimpleCov ::Formatter ::JSONFormatter
12- ] )
11+ SimpleCov . formatters = SimpleCov ::Formatter ::MultiFormatter . new ( [
12+ SimpleCov ::Formatter ::HTMLFormatter ,
13+ SimpleCov ::Formatter ::JSONFormatter
14+ ] )
1315
14- SimpleCov . start do
15- add_filter %r{^/spec/}
16+ add_filter "/spec/"
17+ track_files "/lib/*.rb"
1618 end
1719end
1820
Original file line number Diff line number Diff line change 22
33RSpec . describe Teckel do
44 it "has a version number" do
5+ expect ( Teckel . const_defined? ( :VERSION ) ) . to be true
56 expect ( Teckel ::VERSION ) . not_to be nil
67 end
78end
You can’t perform that action at this time.
0 commit comments