Skip to content

Commit fc8d9f8

Browse files
committed
Add code coverage tooling
1 parent 6183778 commit fc8d9f8

File tree

4 files changed

+12
-6
lines changed

4 files changed

+12
-6
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
99
### Added
1010
- Special handling of attempts to run the `arduino_ci.rb` CI script against the ruby library instead of an actual Arduino project
1111
- Explicit checks for attemping to test `arduino_ci` itself as if it were a library, resolving a minor annoyance to this developer.
12+
- Code coverage tooling
1213

1314
### Changed
1415
- Arduino backend is now `arduino-cli` version `0.13.0`

Gemfile

+7
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,10 @@ git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
44

55
# Specify your gem's dependencies in arduino_ci.gemspec
66
gemspec
7+
8+
gem "bundler", "> 1.15", require: false, group: :test
9+
gem "keepachangelog_manager", "~> 0.0.2", require: false, group: :test
10+
gem "rspec", "~> 3.0", require: false, group: :test
11+
gem 'rubocop', '~>0.59.0', require: false, group: :test
12+
gem 'simplecov', require: false, group: :test
13+
gem 'yard', '~>0.9.11', require: false, group: :test

arduino_ci.gemspec

-6
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,4 @@ Gem::Specification.new do |spec|
2727

2828
spec.add_dependency "os", "~> 1.0"
2929
spec.add_dependency "rubyzip", "~> 1.2"
30-
31-
spec.add_development_dependency "bundler", "> 1.15"
32-
spec.add_development_dependency "keepachangelog_manager", "~> 0.0.2"
33-
spec.add_development_dependency "rspec", "~> 3.0"
34-
spec.add_development_dependency 'rubocop', '~>0.59.0'
35-
spec.add_development_dependency 'yard', '~>0.9.11'
3630
end

spec/spec_helper.rb

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
require 'simplecov'
2+
SimpleCov.start do
3+
add_filter %r{^/spec/}
4+
end
15
require "bundler/setup"
26
require "arduino_ci"
37

0 commit comments

Comments
 (0)