Sha256: 2e1966dba757cfaee9dfe2aefb44e42b58c4cd21eb5788afaf737a20bb1c75db

Contents?: true

Size: 479 Bytes

Versions: 2

Compression:

Stored size: 479 Bytes

Contents

#!/usr/bin/env ruby

if ARGV.empty?
  puts "usage: cutest [-v] [-r lib] [-o test] [-s scope] file ..."
  exit
end

require_relative "../lib/cutest"
require "clap"

files = Clap.run ARGV,
  "-r"      => lambda { |file| require file },
  "-o"      => lambda { |name| cutest[:only] = name },
  "-s"      => lambda { |name| cutest[:scope] = name },
  "-v"      => lambda { puts Cutest::VERSION; exit }

if files.any?
  success = Cutest.run(Dir[*files])

  exit(1) unless success
end

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
polizia-1.0.0 .gs/gems/cutest-1.2.3/bin/cutest
cutest-1.2.3 bin/cutest