Skip to content
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

[#6595] Add exit_on_test_failure option to allow copying screenshots … #6606

Conversation

lalunamel
Copy link
Contributor

No description provided.

@@ -225,7 +225,11 @@ def run_tests(device_serial, test_classes_to_use, test_packages_to_use)
print_all: true,
print_command: true)

UI.user_error!("Tests failed", show_github_issues: false) if test_output.include?("FAILURES!!!")
if @config[:exit_on_test_failure]
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would wrap this block in the if test_output.include?("FAILURES!!!") but rubocop then complains I need to include a next to skip the current iteration of the loop (which is not necessary)

@@ -8,12 +8,60 @@
@runner = Screengrab::Runner.new(mock_executor, config, mock_android_environment)
end

def set_mock_adb_response(command, mock_response)
def mock_adb_response_for_command(command, mock_response)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Again, rubocop complains that I can't have a method with the word 'set' in it that's a setter. (even though that existed before this commit)

@lalunamel
Copy link
Contributor Author

#6595

@asfalcone asfalcone merged commit a9b7bc9 into fastlane:master Jan 3, 2017
@KrauseFx KrauseFx mentioned this pull request Jan 3, 2017
@fastlane fastlane locked and limited conversation to collaborators Apr 7, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants