Sha256: 896a6287d81239c23c1e6d654d94c8293bde88d0997cb064e7fc2c75b893cb47

Contents?: true

Size: 403 Bytes

Versions: 4

Compression:

Stored size: 403 Bytes

Contents

# Provides painless, automatic configuration of Detest.
#
# Simply require() this file and Detest will be available for use anywhere
# in your program and will execute all tests before your program exits.

require 'detest'
include Detest

at_exit do
  Detest.start

  # reflect number of failures in exit status
  stats = Detest.stats
  fails = stats[:fail] + stats[:error]

  exit [fails, 255].min
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
detest-3.1.3 lib/detest/auto.rb
detest-3.1.2 lib/detest/auto.rb
detest-3.1.1 lib/detest/auto.rb
detest-3.1.0 lib/detest/auto.rb