Sha256: e02a886fb2b9d1e3fb2f9ca3157770d5eb5ed3410a4b0ab801dd323ac0224fd4
Contents?: true
Size: 636 Bytes
Versions: 1
Compression:
Stored size: 636 Bytes
Contents
class JsTestDriverRunner def initialize(dir, jar, filter, server) @config = dir + '/jsTestDriver.conf' @dir = dir @jar = jar @filter = filter @server = server end def name return 'JS Test Driver' end def execute @server.start_if_required return `java -jar "#{@jar}" --config "#{@config}" --reset˝˝ --tests all 2>&1` end def is_configured?(all_files) return all_files.include?(@dir + '/jsTestDriver.conf') end def should_run?(modified_files) return !(modified_files.detect { |file| @filter.filter(file) }).nil? || modified_files.include?(@config) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
loris-0.1.1 | lib/tasks/js_test_driver/js_test_driver_runner.rb |