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-0.4.0 features/steps/xcpretty_steps.rb
xcpretty-security-patched-0.3.2 features/steps/xcpretty_steps.rb
xcpretty-security-patched-0.3.0 features/steps/xcpretty_steps.rb
xcpretty-0.3.0 features/steps/xcpretty_steps.rb
xcpretty-0.2.8 features/steps/xcpretty_steps.rb
xcpretty-0.2.7 features/steps/xcpretty_steps.rb
xcpretty-0.2.6 features/steps/xcpretty_steps.rb
xcpretty-0.2.4 features/steps/xcpretty_steps.rb
xcpretty-0.2.3 features/steps/xcpretty_steps.rb
xcpretty-bb-0.1.12.bb14 features/steps/xcpretty_steps.rb
xcpretty-bb-0.1.12.bb13 features/steps/xcpretty_steps.rb
xcpretty-bb-0.1.12.bb12 features/steps/xcpretty_steps.rb
xcpretty-bb-0.1.12.bb11 features/steps/xcpretty_steps.rb
xcpretty-bb-0.1.12.bb10 features/steps/xcpretty_steps.rb
xcpretty-bb-0.1.12.bb9 features/steps/xcpretty_steps.rb
xcpretty-bb-0.1.12.bb8 features/steps/xcpretty_steps.rb
learn-xcpretty-0.1.12 features/steps/xcpretty_steps.rb
xcpretty-0.2.2 features/steps/xcpretty_steps.rb
xcpretty-bb-0.1.12.bb7 features/steps/xcpretty_steps.rb
xcpretty-0.2.1 features/steps/xcpretty_steps.rb