Sha256: 49684ee479626a9812c4378d51790667debc39b7c801365190fad2037f9ae731

Contents?: true

Size: 224 Bytes

Versions: 1

Compression:

Stored size: 224 Bytes

Contents

require "petitest"

at_exit do
  if $! && !($!.is_a?(::SystemExit) && $!.success?)
    next
  end
  result = Petitest::TestCasesRunner.new(Petitest::TestGroup.children).run
  exit_code = result ? 0 : 1
  exit(exit_code)
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
petitest-0.2.1 lib/petitest/autorun.rb