Sha256: 1895220e9f045be918b0252a1e36df39ad0a0605630169ee9826be3ac8e0141a
Contents?: true
Size: 1.35 KB
Versions: 2
Compression:
Stored size: 1.35 KB
Contents
module JsTestDriver module Commands class JstdJarCommand < BaseCommand attr_reader :runtime_config, :config def initialize(runtime_config, config) super('java') @runtime_config = runtime_config @config = config option('-jar', runtime_config.jar_path) option('--serverHandlerPrefix', 'jstd') end def with_config return option('--config', runtime_config.config_yml_path) end def start_server return option('--port', config.port) end def run_tests(tests = nil) return option('--tests', tests || "all") end def capture_browsers(browsers = nil) browsers ||= config.browsers.join(',') raise ArgumentError.new("No browsers defined!") if browsers == "" return option('--browser', browsers) end def output_directory(path) return option('--testOutput', path) end def output_xml return output_directory(runtime_config.test_xml_data_path) end def capture_console return option('--captureConsole') end def verbose return option('--verbose') end def runner_mode(mode) return option('--runnerMode', mode) end def browser_timeout(timeout) return option('--browserTimeout', timeout) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
js-test-driver-rails-0.5.0.pre2 | lib/js_test_driver/commands/jstd_jar_command.rb |
js-test-driver-rails-0.5.0.pre1 | lib/js_test_driver/commands/jstd_jar_command.rb |