bin/xcmonkey in xcmonkey-1.0.0 vs bin/xcmonkey in xcmonkey-1.1.0

- old
+ new

@@ -6,11 +6,11 @@ require_relative '../lib/xcmonkey/repeater' require_relative '../lib/xcmonkey/logger' require_relative '../lib/xcmonkey/driver' require_relative '../lib/xcmonkey/version' -module Xcmonkey +class Xcmonkey program :version, VERSION program :description, 'xcmonkey is a tool for doing randomised UI testing of iOS apps' command :test do |c| c.syntax = 'xcmonkey test [options]' @@ -19,14 +19,9 @@ c.option('-b', '--bundle-id STRING', String, 'Set target bundle identifier') c.option('-d', '--duration SECONDS', Integer, 'Test duration in seconds. Defaults to `60`') c.option('-k', '--enable-simulator-keyboard', 'Should simulator keyboard be enabled? Defaults to `true`') c.option('-s', '--session-path STRING', String, 'Path where monkey testing session should be saved. Defaults to current directory') c.action do |_, options| - options.default( - duration: 60, - session_path: Dir.pwd, - enable_simulator_keyboard: true - ) params = { udid: options.udid, bundle_id: options.bundle_id, duration: options.duration, session_path: options.session_path,