Skip to content

Commit

Permalink
✅ Setup simplecov
Browse files Browse the repository at this point in the history
  • Loading branch information
nevans committed Sep 26, 2024
1 parent 8c25109 commit 65c9f43
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .simplecov
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
SimpleCov.start do
command_name "Net::IMAP tests"
enable_coverage :branch
primary_coverage :branch
enable_coverage_for_eval

# TODO: gradually increase all of these up to 90+
minimum_coverage line: 90, branch: 70
minimum_coverage_by_file line: 40, branch: 0

add_filter "/test/"
add_filter "/rakelib/"

add_group "Parser", %w[lib/net/imap/response_parser.rb
lib/net/imap/response_parser]
add_group "Config", %w[lib/net/imap/config.rb
lib/net/imap/config]
add_group "SASL", %w[lib/net/imap/sasl.rb
lib/net/imap/sasl
lib/net/imap/authenticators.rb]
add_group "StringPrep", %w[lib/net/imap/stringprep.rb
lib/net/imap/stringprep]
end
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ gem "test-unit"
gem "test-unit-ruby-core", git: "https://github.com/ruby/test-unit-ruby-core"

gem "benchmark-driver"
gem "simplecov"
1 change: 1 addition & 0 deletions test/lib/helper.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
require "simplecov"
require "test/unit"
require "core_assertions"

Expand Down

0 comments on commit 65c9f43

Please sign in to comment.