Sha256: df6320d3e5418850918b38826f3374aa111f888bea9fee1420e48ac9c23d85d7
Contents?: true
Size: 532 Bytes
Versions: 3
Compression:
Stored size: 532 Bytes
Contents
#!/usr/bin/env ruby require 'json' require 'pathname' require 'side_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 SideToCapybara.to_minitest(test_instance['name'], test_instance['commands']) end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
side_to_capybara-0.1.3 | exe/side2capybara |
side_to_capybara-0.1.2 | exe/side2capybara |
side_to_capybara-0.1.0 | exe/side2capybara |