features/steps/formatting_steps.rb in xcpretty-0.2.3 vs features/steps/formatting_steps.rb in xcpretty-0.2.4
- old
+ new
@@ -66,10 +66,14 @@
Given(/^I have a framework to code sign$/) do
add_run_input SAMPLE_CODESIGN_FRAMEWORK
end
+Given(/^I have a target which will not be code signed$/) do
+ add_run_input SAMPLE_WILL_NOT_BE_CODE_SIGNED
+end
+
Given(/^I have a file to preprocess$/) do
add_run_input SAMPLE_PREPROCESS
end
Given(/^I have a file to copy with PBXCp/) do
@@ -126,10 +130,22 @@
Given(/^I have completed a clean$/) do
add_run_input SAMPLE_CLEAN_SUCCEEDED
end
+Given(/^the provisioning profile doesn't support capability$/) do
+ add_run_input SAMPLE_PROFILE_DOESNT_SUPPORT_CAPABILITY_ERROR
+end
+
+Given(/^the provisioning profile doesn't include entitlement$/) do
+ add_run_input SAMPLE_PROFILE_DOESNT_INCLUDE_ENTITLEMENT_ERROR
+end
+
+Given(/^the target requires code signing$/) do
+ add_run_input SAMPLE_CODE_SIGNING_IS_REQUIRED_ERROR
+end
+
Then(/^I should see a "(\w+)" completion message$/) do |phase|
run_output.should start_with("▸ #{phase.capitalize} Succeeded")
end
Then(/^I should see text beginning with "(.*?)"$/) do |text|
@@ -183,10 +199,14 @@
Then(/^I should see a successful code signing message$/) do
run_output.should start_with("▸ Signing")
end
+Then(/^I should see a target will not be code signed warning$/) do
+ run_output.should include(yellow("⚠️ FrameworkName will not be code signed because its settings don't specify a development team."))
+end
+
Then(/^I should see a successful preprocessing message$/) do
run_output.should start_with("▸ Preprocessing")
end
Then(/^I should see a successful copying message$/) do
@@ -332,7 +352,19 @@
run_output.should include("#{red("0.101")}")
end
Then(/^I should see text matching "(.*?)"$/) do |text|
run_output.lines.to_a.last.strip.should == text
+end
+
+Then(/^I should see the profile doesn't support capability message$/) do
+ run_output.should include("Provisioning profile \"Profile Name\" doesn't support the Push Notifications capability.")
+end
+
+Then(/^I should see the profile doesn't include entitlement message$/) do
+ run_output.should include("Provisioning profile \"Profile Name\" doesn't include the aps-environment entitlement.")
+end
+
+Then(/^I should see the code signing is requried message$/) do
+ run_output.should include("Code signing is required for product type 'Application' in SDK 'iOS 10.0'")
end