зеркало из https://github.com/github/ruby.git
Move the file location of launchable.rb
This commit is contained in:
Родитель
5b78925455
Коммит
8ede84aa95
|
@ -236,7 +236,7 @@ End
|
|||
return true
|
||||
end
|
||||
|
||||
require_relative '../tool/lib/test/unit/launchable'
|
||||
require_relative '../tool/lib/launchable'
|
||||
BT.launchable_test_reports = writer = Launchable::JsonStreamWriter.new($1)
|
||||
writer.write_array('testCases')
|
||||
at_exit {
|
||||
|
|
|
@ -1450,7 +1450,7 @@ module Test
|
|||
def setup_options(opts, options)
|
||||
super
|
||||
opts.on_tail '--launchable-test-reports=PATH', String, 'Report test results in Launchable JSON format' do |path|
|
||||
require_relative '../test/unit/launchable'
|
||||
require_relative '../launchable'
|
||||
options[:launchable_test_reports] = writer = Launchable::JsonStreamWriter.new(path)
|
||||
writer.write_array('testCases')
|
||||
main_pid = Process.pid
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
require 'test/unit'
|
||||
require 'tempfile'
|
||||
require 'json'
|
||||
require_relative '../../lib/test/unit/launchable'
|
||||
require_relative '../../lib/launchable'
|
||||
|
||||
class TestLaunchable < Test::Unit::TestCase
|
||||
def test_json_stream_writer
|
||||
|
|
Загрузка…
Ссылка в новой задаче