15 lines
447 B
Text
15 lines
447 B
Text
|
#!/usr/bin/env ruby
|
||
|
# frozen_string_literal: true
|
||
|
|
||
|
require_relative '../lib/tooling/mappings/js_to_system_specs_mappings'
|
||
|
|
||
|
changes = ARGV.shift
|
||
|
matching_tests = ARGV.shift
|
||
|
|
||
|
changed_files = File.read(changes).split(' ')
|
||
|
matching_test_files = File.read(matching_tests).split(' ')
|
||
|
|
||
|
system_tests = Tooling::Mappings::JsToSystemSpecsMappings.new.execute(changed_files)
|
||
|
|
||
|
File.write(matching_tests, (matching_test_files + system_tests).join(' '))
|