Sha256: d281eeb7546fc5cf113b35b2967e517220b208da3b40b582669fd6714d6088c0

Contents?: true

Size: 810 Bytes

Versions: 38

Compression:

Stored size: 810 Bytes

Contents

When(/^I run xcpretty$/) do
  @output = `bin/xcpretty 2>&1`
end

When(/^I run xcpretty with (.*)$/) do |flags|
  @output = `bin/xcpretty #{flags}`
end

When(/^I run xcpretty over a big file$/) do
  start_time = Time.now
  @output = `cat features/fixtures/xcodebuild.log | bin/xcpretty -c`
  @xcpretty_run_time = Time.now - start_time
end

Then(/^I should see the help banner$/) do
  run_output.should include("Usage: xcodebuild [options] | xcpretty")
end

Then(/^I should see the xcpretty version$/) do
  run_output.should include(XCPretty::VERSION)
end

Then(/^the exit status code should be (\d)$/) do |numbah|
  $?.exitstatus.should == numbah.to_i
end

Then(/^the performance should be way faster than running cat$/) do
  puts "XCPretty run time: #{@xcpretty_run_time}"
  @xcpretty_run_time.should < 2
end

Version data entries

38 entries across 38 versions & 4 rubygems

Version Path
xcpretty-bb-0.1.12.bb6 features/steps/xcpretty_steps.rb
xcpretty-0.2.0 features/steps/xcpretty_steps.rb
xcpretty-bb-0.1.12.bb5 features/steps/xcpretty_steps.rb
xcpretty-bb-0.1.12.bb4 features/steps/xcpretty_steps.rb
xcpretty-bb-0.1.12.bb3 features/steps/xcpretty_steps.rb
xcpretty-bb-0.1.12.bb2 features/steps/xcpretty_steps.rb
xcpretty-bb-0.1.12.bb1 features/steps/xcpretty_steps.rb
xcpretty-0.1.12 features/steps/xcpretty_steps.rb
xcpretty-0.1.11 features/steps/xcpretty_steps.rb
xcpretty-0.1.10 features/steps/xcpretty_steps.rb
learn-xcpretty-0.1.11 features/steps/xcpretty_steps.rb
xcpretty-0.1.9 features/steps/xcpretty_steps.rb
xcpretty-0.1.8 features/steps/xcpretty_steps.rb
xcpretty-0.1.7 features/steps/xcpretty_steps.rb
xcpretty-0.1.6 features/steps/xcpretty_steps.rb
xcpretty-0.1.5 features/steps/xcpretty_steps.rb
xcpretty-0.1.4 features/steps/xcpretty_steps.rb
xcpretty-0.1.3 features/steps/xcpretty_steps.rb