class Fastlane::Actions::TestmunkAction
def self.run(config)
def self.run(config) Helper.log.info 'Testmunk: Uploading the .ipa and starting your tests'.green Helper.log.info 'Zipping features/ to features.zip'.green zipped_features_path = File.expand_path('features.zip') Actions.sh(%(zip -r "features" "features/")) response = system("curl -H 'Accept: application/vnd.testmunk.v1+json'" \ " -F 'file=@#{config[:ipa]}' -F 'autoStart=true'" \ " -F 'testcases=@#{zipped_features_path}'" \ " -F 'email=#{config[:email]}'" \ " https://#{config[:api]}@api.testmunk.com/apps/#{config[:app]}/testruns") if response Helper.log.info 'Your tests are being executed right now. Please wait for the mail with results and decide if you want to continue.'.green else raise 'Something went wrong while uploading your app to Testmunk'.red end end