Sha256: 6c64c1a3864926435bc9a284cea3516f82a09eb7c020bb93aabca7aa11d51982

Contents?: true

Size: 252 Bytes

Versions: 1

Compression:

Stored size: 252 Bytes

Contents

require "petitest"

at_exit do
  if $! && !($!.is_a?(::SystemExit) && $!.success?)
    next
  end
  test_cases = Petitest::TestGroup.test_cases
  result = Petitest::TestCasesRunner.new(test_cases).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.0 lib/petitest/autorun.rb