Sha256: 1338dde39fbcc9293949e9d5efe9f140e323f8a4548ee84b802c9a255aaeb2b5

Contents?: true

Size: 1.07 KB

Versions: 33

Compression:

Stored size: 1.07 KB

Contents

require_relative "../../test_helper"

module MinitestReportersTest
  class ProgressReporterTest < TestCase
    def test_all_failures_are_displayed
      fixtures_directory = File.expand_path('../../../fixtures', __FILE__)
      test_filename = File.join(fixtures_directory, 'progress_test.rb')
      output = `ruby #{test_filename} 2>&1`
      assert_match 'ERROR["test_error"', output, 'Errors should be displayed'
      assert_match 'FAIL["test_failure"', output, 'Failures should be displayed'
      assert_match 'SKIP["test_skip', output, 'Skipped tests should be displayed'
    end
    def test_skipped_tests_are_not_displayed
      fixtures_directory = File.expand_path('../../../fixtures', __FILE__)
      test_filename = File.join(fixtures_directory, 'progress_detailed_skip_test.rb')
      output = `ruby #{test_filename} 2>&1`
      assert_match 'ERROR["test_error"', output, 'Errors should be displayed'
      assert_match 'FAIL["test_failure"', output, 'Failures should be displayed'
      refute_match 'SKIP["test_skip', output, 'Skipped tests should not be displayed'
    end
  end
end

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
minitest-reporters-1.1.16 test/integration/reporters/progress_reporter_test.rb
minitest-reporters-1.1.15 test/integration/reporters/progress_reporter_test.rb
minitest-reporters-1.1.14 test/integration/reporters/progress_reporter_test.rb
minitest-reporters-1.1.13 test/integration/reporters/progress_reporter_test.rb
minitest-reporters-1.1.12 test/integration/reporters/progress_reporter_test.rb
minitest-reporters-1.1.11 test/integration/reporters/progress_reporter_test.rb
minitest-reporters-1.1.11.beta1 test/integration/reporters/progress_reporter_test.rb
minitest-reporters-1.1.10 test/integration/reporters/progress_reporter_test.rb
minitest-reporters-1.1.9 test/integration/reporters/progress_reporter_test.rb
minitest-reporters-1.1.9.beta2 test/integration/reporters/progress_reporter_test.rb
minitest-reporters-1.1.9.beta1 test/integration/reporters/progress_reporter_test.rb
minitest-reporters-1.1.8 test/integration/reporters/progress_reporter_test.rb
minitest-reporters-1.1.7 test/integration/reporters/progress_reporter_test.rb
minitest-reporters-1.1.6 test/integration/reporters/progress_reporter_test.rb
minitest-reporters-1.1.5 test/integration/reporters/progress_reporter_test.rb
minitest-reporters-1.1.4 test/integration/reporters/progress_reporter_test.rb
minitest-reporters-1.1.3 test/integration/reporters/progress_reporter_test.rb
minitest-reporters-1.1.2 test/integration/reporters/progress_reporter_test.rb
minitest-reporters-1.1.1 test/integration/reporters/progress_reporter_test.rb
minitest-reporters-1.1.0 test/integration/reporters/progress_reporter_test.rb