-
Notifications
You must be signed in to change notification settings - Fork 289
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for multiline warnings #131
Conversation
supermarin
commented
Mar 5, 2015
@@ -250,6 +254,11 @@ | |||
run_output.should include(red("⌦ " + SAMPLE_PODS_ERROR.gsub('error: ', ''))) | |||
end | |||
|
|||
Then(/^I should see a yellow warning message$/) do | |||
run_output.should include("#{yellow('⚠️ ')}/Users/supermarin/code/oss/ObjectiveSugar/Example/ObjectiveSugar/AppDelegate.m:19:31:") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line is too long. [133/80]
@@ -349,16 +358,21 @@ def update_test_state(text) | |||
|
|||
# @ return Hash { :file_name, :file_path, :reason, :line } | |||
def update_error_state(text) | |||
update_error = lambda { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Avoid using {...} for multi-line blocks.
@@ -91,7 +85,7 @@ module XCPretty | |||
end | |||
|
|||
it "parses compiling C and C++ files" do | |||
for file_extension in ['.c', '.cc', '.cpp', '.cxx'] do | |||
['.c', '.cc', '.cpp', '.cxx'].each do |file_extension| |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lol did I do this? how did we ever get a for
loop in here?
SAMPLE_UNRELATED_IMAGE_FILE = 'apple_raw.png' | ||
|
||
SAMPLE_COMPILE_ERROR_WITH_TILDES = %Q( | ||
/Users/musalj/code/OSS/ObjectiveSugar/Example/ObjectiveSugarTests/NSSetTests.m:93:16: error: no visible @interface for 'NSArray' declares the selector 'shoulds' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line is too long. [160/80]
Add support for multiline warnings