fastlane/lib/fastlane/actions/run_tests.rb in fastlane-2.202.0 vs fastlane/lib/fastlane/actions/run_tests.rb in fastlane-2.203.0

- old
+ new

@@ -12,16 +12,16 @@ def self.run(values) require 'scan' manager = Scan::Manager.new begin - manager.work(values) + results = manager.work(values) zip_build_products_path = Scan.cache[:zip_build_products_path] Actions.lane_context[SharedValues::SCAN_ZIP_BUILD_PRODUCTS_PATH] = zip_build_products_path if zip_build_products_path - return true + return results rescue FastlaneCore::Interface::FastlaneBuildFailure => ex # Specifically catching FastlaneBuildFailure to prevent build/compile errors from being # silenced when :fail_build is set to false # :fail_build should only suppress testing failures raise ex @@ -52,9 +52,17 @@ "Easily run tests of your iOS app (via _scan_)" end def self.details "More information: https://docs.fastlane.tools/actions/scan/" + end + + def self.return_value + 'Outputs has of results with :number_of_tests, :number_of_failures, :number_of_retries, :number_of_tests_excluding_retries, :number_of_failures_excluding_retries' + end + + def self.return_type + :hash end def self.author "KrauseFx" end