Skip to content

Commit

Permalink
ci(chore): x-plat - skip cli tests on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
YOU54F committed May 5, 2023
1 parent 21fc864 commit 82ddf67
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion spec/integration/cli_docs_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
require 'support/cli'
require 'fileutils'

describe "running the pact docs CLI" do
describe "running the pact docs CLI", skip_windows: true do

include Pact::Support::CLI

Expand Down
2 changes: 1 addition & 1 deletion spec/integration/cli_spec.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
require 'open3'
require 'support/cli'

describe "running the pact verify CLI" do
describe "running the pact verify CLI", skip_windows: true do

include Pact::Support::CLI

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
RSpec.describe "executing pact verify" do
RSpec.describe "executing pact verify", skip_windows: true do
let(:command) { "bundle exec rake pact:verify:test_app:fail > /dev/null" }
let(:reports_dir) { 'tmp/spec_reports' } # The config for this is in spec/support/pact_helper.rb

Expand Down
2 changes: 2 additions & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
require './spec/support/warning_silencer'

is_jruby = defined?(RUBY_ENGINE) && RUBY_ENGINE == 'jruby'
is_windows = Gem.win_platform?

RSpec.configure do | config |
config.include(FakeFS::SpecHelpers, fakefs: true)
Expand All @@ -25,4 +26,5 @@
config.example_status_persistence_file_path = "./spec/examples.txt"
end
config.filter_run_excluding skip_jruby: is_jruby
config.filter_run_excluding skip_windows: is_windows
end

0 comments on commit 82ddf67

Please sign in to comment.