Sha256: 2f2fb6366cf2a2ef7412b02680f890778e02f9a966ddc4443f9456892342672a
Contents?: true
Size: 1.23 KB
Versions: 3
Compression:
Stored size: 1.23 KB
Contents
#!/usr/bin/env ruby require 'optparse' require_relative '../lib/learn_test' options = {} OptionParser.new do |opts| opts.banner = "Usage: learn [options]" opts.on("-n", "--[no-]color", "Turn off color output") do |c| options[:color] = c end opts.on("-f", "--format") do |f| options[:format] = f end opts.on("-l", "--local", "Don't push results to Flatiron LMS") do |l| options[:local] = l end opts.on("-b", "--browser", "Run tests in browser") do |b| options[:browser] = b end opts.on("-o", "--out FILE") do |o| options[:out] = o end opts.on("-s", "--skip") do |s| options[:skip] = s end opts.on("-t", "--test") do |t| options[:test] = t end opts.on("-v", "--version") do |v| puts LearnTest::VERSION exit end opts.on('--keep', "Don't delete test output files") do |k| options[:keep] = true end opts.on('--fail-fast', 'Stop running test suite on first failed test') do |f| options[:fail_fast] = f end if ARGV.any? { |arg| arg == "init" } options[:init] = true end options[:argv] = ARGV end.parse! repo = options[:test] ? "git@github.com:flatiron-school/a-sample-repo.git" : LearnTest::RepoParser.get_repo LearnTest::Runner.new(repo, options).run
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
learn-test-2.4.0 | bin/learn-test |
learn-test-2.3.3 | bin/learn-test |
learn-test-2.3.2 | bin/learn-test |