Sha256: b0b8112dfec33d4ee30f8e6c1903833e97e4321067dbd68ed637ce6607959d2e

Contents?: true

Size: 1.21 KB

Versions: 2

Compression:

Stored size: 1.21 KB

Contents

# frozen_string_literal: true

scope group: :unit_test

group :unit_test do
  guard 'rspec', cmd:
    "bundle exec rspec -P \"spec/lib/minty/**/*#{ENV['PATTERN']}*_spec.rb\"--drb --format Fuubar --color" do
    # run every updated spec file
    watch(%r{^spec/.+_spec\.rb$})
    # run the lib specs when a file in lib/ changes
    watch(%r{^lib/(.+)\.rb$}) { 'spec' }
    # run all test for helper changes
    watch('spec/spec_helper.rb') { 'spec' }
  end
end

group :integration do
  guard 'rspec', cmd:
    "MODE=full bundle exec rspec -P \"spec/integration/**/*#{ENV['PATTERN']}*_spec.rb\" --drb --format Fuubar --color" do
    # run every updated spec file
    watch(%r{^spec/.+_spec\.rb$})
    # run the lib specs when a file in lib/ changes
    watch(%r{^lib/(.+)\.rb$}) { 'spec' }
    # run all test for helper changes
    watch('spec/spec_helper.rb') { 'spec' }
  end
end

group :full do
  guard 'rspec', cmd:
    'MODE=full bundle exec rspec --drb --format Fuubar --color' do
    # run every updated spec file
    watch(%r{^spec/.+_spec\.rb$})
    # run the lib specs when a file in lib/ changes
    watch(%r{^lib/(.+)\.rb$}) { 'spec' }
    # run all test for helper changes
    watch('spec/spec_helper.rb') { 'spec' }
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
minty-1.0.1 Guardfile
minty-1.0.0 Guardfile