Skip to content

Commit a2857af

Browse files
committed
Add ability to suppress annoying splash screen during (local) testing
1 parent 4104f0e commit a2857af

File tree

4 files changed

+9
-0
lines changed

4 files changed

+9
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1111
- `arduino_library_location.rb` script to print Arduino library location to stdout
1212
- `arduino_ci_remote.rb` now supports `--skip-unittests` and `--skip-compilation`. If you skip both, only the `autolocate!` of the Arduino binary will be performed.
1313
- `keepachangelog_manager` gem to begin streamlining the release process
14+
- Added rspec sensitivity to the environment variable `$ARDUINO_CI_SKIP_SPLASH_SCREEN_RSPEC_TESTS` (for `arduino_ci` gem hackers)
1415

1516
### Changed
1617
- Unit tests and examples are now executed alphabetically by filename

spec/arduino_cmd_spec.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ def get_sketch(dir, file)
77

88

99
RSpec.describe ArduinoCI::ArduinoCmd do
10+
next if skip_splash_screen_tests
11+
1012
arduino_cmd = ArduinoCI::ArduinoInstallation.autolocate!
1113

1214
after(:each) do |example|

spec/arduino_installation_spec.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
require "spec_helper"
22

33
RSpec.describe ArduinoCI::ArduinoInstallation do
4+
next if skip_splash_screen_tests
5+
46
context "autolocate" do
57
it "doesn't fail" do
68
ArduinoCI::ArduinoInstallation.autolocate

spec/spec_helper.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,7 @@
1212
c.syntax = :expect
1313
end
1414
end
15+
16+
def skip_splash_screen_tests
17+
!ENV["ARDUINO_CI_SKIP_SPLASH_SCREEN_RSPEC_TESTS"].nil?
18+
end

0 commit comments

Comments
 (0)