Sha256: 77236fe2cc85491cf20f8593df566fb785a6e7614a58a6938607c72a650c115e

Contents?: true

Size: 1.19 KB

Versions: 20

Compression:

Stored size: 1.19 KB

Contents

require File.expand_path(File.dirname(__FILE__)) + '/helper.rb'

class TestReporters < Test::Unit::TestCase

  begin
    require 'ansi'
    def test_progress
      file = setup_testunit
      result = turn '--progress', file
      assert(result.index('PASS'), result)
    end
  rescue LoadError
  end

  def test_dotted
    file = setup_testunit
    result = turn '--dotted', file
    assert result.index('0 failures'), "ACTUAL RESULT:\n#{result}"
    assert result.index('0 errors'), "ACTUAL RESULT:\n#{result}"
  end

  def test_marshal
    file = setup_testunit
    result = turn '--marshal', file
    assert !result.index('error: true'), "ACTUAL RESULT:\n#{result}"
    assert !result.index('fail: true'),  "ACTUAL RESULT:\n#{result}"
  end

  def test_outline
    file = setup_testunit_outline
    result = turn '--outline', file
    assert result.index('You should see me'), "ACTUAL RESULT:\n#{result}"
    assert !result.index('You should not see me'), "ACTUAL RESULT:\n#{result}"
  end

  def test_pretty
    file = setup_testunit
    result = turn '--pretty', file
    assert result.index('0 errors'), "ACTUAL RESULT:\n#{result}"
    assert result.index('0 failures'), "ACTUAL RESULT:\n#{result}"
  end

end

Version data entries

20 entries across 20 versions & 5 rubygems

Version Path
arcabouco-0.2.13 vendor/bundle/gems/turn-0.9.6/test/test_reporters.rb
turn-0.9.7 test/test_reporters.rb
challah-1.0.0 vendor/bundle/gems/turn-0.9.6/test/test_reporters.rb
swipe-rails-0.0.5 vendor/bundle/gems/turn-0.9.6/test/test_reporters.rb
challah-1.0.0.beta3 vendor/bundle/gems/turn-0.9.6/test/test_reporters.rb
challah-1.0.0.beta2 vendor/bundle/gems/turn-0.9.6/test/test_reporters.rb
challah-1.0.0.beta vendor/bundle/gems/turn-0.9.6/test/test_reporters.rb
challah-0.9.1.beta.3 vendor/bundle/gems/turn-0.9.6/test/test_reporters.rb
challah-0.9.1.beta vendor/bundle/gems/turn-0.9.6/test/test_reporters.rb
challah-0.9.0 vendor/bundle/gems/turn-0.9.6/test/test_reporters.rb
challah-rolls-0.2.0 vendor/bundle/gems/challah-0.8.3/vendor/bundle/gems/turn-0.9.6/test/test_reporters.rb
challah-0.8.3 vendor/bundle/gems/turn-0.9.6/test/test_reporters.rb
turn-0.9.6 test/test_reporters.rb
challah-0.6.1 vendor/bundle/gems/turn-0.9.5/test/test_reporters.rb
challah-0.6.0 vendor/bundle/gems/turn-0.9.5/test/test_reporters.rb
turn-0.9.5 test/test_reporters.rb
turn-0.9.4 test/test_reporters.rb
turn-0.9.3 test/test_reporters.rb
turn-0.9.2 test/test_reporters.rb
turn-0.9.1 test/test_reporters.rb