Sha256: 1b57e8512825e2cbdc6dc317b860ffa963300b4c8c7f98396cbfa54354e0ae75

Contents?: true

Size: 853 Bytes

Versions: 10

Compression:

Stored size: 853 Bytes

Contents

# Copyright (c) 2006-2010 Nick Sieger <nicksieger@gmail.com>
# See the file LICENSE.txt included with the distribution for
# software license details.

$: << File.dirname(__FILE__) + "/../../.."
require 'ci/reporter/test_unit'

# Intercepts mediator creation in ruby-test < 2.1
module Test #:nodoc:all
  module Unit
    module UI
      module Console
        class TestRunner
          def create_mediator(suite)
            # swap in our custom mediator
            return CI::Reporter::TestUnit.new(suite)
          end
        end
      end
    end
  end
end

# Intercepts mediator creation in ruby-test >= 2.1
module Test #:nodoc:all
  module Unit
    module UI
      class TestRunner
        def setup_mediator
          # swap in our custom mediator
          @mediator = CI::Reporter::TestUnit.new(@suite)
        end
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 4 rubygems

Version Path
ci_reporter-1.6.9 lib/ci/reporter/rake/test_unit_loader.rb
ci_reporter-1.6.8 lib/ci/reporter/rake/test_unit_loader.rb
ci_reporter-1.6.7 lib/ci/reporter/rake/test_unit_loader.rb
ci_reporter-1.6.6 lib/ci/reporter/rake/test_unit_loader.rb
ci_reporter-1.6.5 lib/ci/reporter/rake/test_unit_loader.rb
dimkiriyenko-ci_reporter-1.6.6 lib/ci/reporter/rake/test_unit_loader.rb
dimkiriyenko-ci_reporter-1.6.5 lib/ci/reporter/rake/test_unit_loader.rb
dimkiriyenko-ci_reporter-1.6.4 lib/ci/reporter/rake/test_unit_loader.rb
brasten-ci_reporter-1.6.5 lib/ci/reporter/rake/test_unit_loader.rb
amfranz-ci_reporter-1.6.2 lib/ci/reporter/rake/test_unit_loader.rb