Sha256: 75574c6ca70b555197fdeff73752d6d2ba7439144b8b7eb2a0c73ce482273b3d
Contents?: true
Size: 540 Bytes
Versions: 1
Compression:
Stored size: 540 Bytes
Contents
#!/usr/bin/env ruby require 'json' require 'pathname' require 'selenium_to_capybara' file_path = ARGV[0] raise "must be a .side file" unless file_path.end_with?('.side') side_file = if file_path.start_with?('~') Pathname.new(Dir.home).join(file_path.sub('^~/', '')) elsif file_path.start_with?('/') Pathname.new(file_path) else Pathname.getwd.join(file_path) end json = JSON.parse(side_file.read) json['tests'].each do |test_instance| puts SeleniumToCapybara.to_minitest(test_instance['name'], test_instance['commands']) end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
selenium_to_capybara-0.1.4 | exe/selenium2capybara |