Module Bacon
In: lib/bacon.rb

Copyright (C) 2007, 2008 Christian Neukirchen <purl.org/net/chneukirchen>

Bacon is freely distributable under the terms of an MIT-style license. See COPYING or www.opensource.org/licenses/mit-license.php.

Methods

Classes and Modules

Module Bacon::SpecDoxOutput
Module Bacon::TestUnitOutput

Constants

VERSION = "1.0"
Counter = Hash.new(0)
ErrorLog = ""
Shared = Hash.new { |_, name| raise NameError, "no such context: #{name.inspect}"
RestrictName = // unless defined? RestrictName
RestrictContext = // unless defined? RestrictContext

Public Class methods

[Source]

    # File lib/bacon.rb, line 22
22:   def self.summary_on_exit
23:     return  if Counter[:installed_summary] > 0
24:     at_exit {
25:       handle_summary
26:       if $!
27:         raise $!
28:       elsif Counter[:errors] + Counter[:failed] > 0
29:         exit 1
30:       end
31:     }
32:     Counter[:installed_summary] += 1
33:   end

[Validate]