Skip to content

Commit

Permalink
Merge pull request #63 from lucasmenezesds/test-coverage
Browse files Browse the repository at this point in the history
Added gem to help tracking the code coverage of the tests
  • Loading branch information
yui-knk authored Aug 3, 2023
2 parents c708a60 + e616fe8 commit fa2367e
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
.irbrc
/Gemfile.lock
/pkg/
coverage/
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ gem "stackprof"
gem "rake"
gem "rbs", require: false
gem "steep", require: false
gem "simplecov", require: false
18 changes: 18 additions & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
require "simplecov"

SimpleCov.start do
track_files "lib/**/*.rb"

# Created Groups based on the folder structures
add_group "Grammar", "lib/lrama/grammar"
add_group "Lexer", "lib/lrama/lexer"
add_group "Parser", "lib/lrama/parser"
add_group "Report", "lib/lrama/report"
add_group "State", "lib/lrama/state/"
add_group "States", "lib/lrama/states/"

add_filter "spec/"

enable_coverage :branch
end

require "lrama"

RSpec.configure do |config|
Expand Down

0 comments on commit fa2367e

Please sign in to comment.