Hello community, here is the log from the commit of package rubygem-simplecov for openSUSE:Factory checked in at 2015-02-22 17:26:08 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/rubygem-simplecov (Old) and /work/SRC/openSUSE:Factory/.rubygem-simplecov.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-simplecov" Changes: -------- --- /work/SRC/openSUSE:Factory/rubygem-simplecov/rubygem-simplecov.changes 2014-10-18 09:10:13.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-simplecov.new/rubygem-simplecov.changes 2015-02-22 17:26:09.000000000 +0100 @@ -1,0 +2,5 @@ +Thu Feb 19 05:30:33 UTC 2015 - co...@suse.com + +- updated to version 0.9.2 + +------------------------------------------------------------------- Old: ---- simplecov-0.9.1.gem New: ---- simplecov-0.9.2.gem ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ rubygem-simplecov.spec ++++++ --- /var/tmp/diff_new_pack.pNPU0C/_old 2015-02-22 17:26:10.000000000 +0100 +++ /var/tmp/diff_new_pack.pNPU0C/_new 2015-02-22 17:26:10.000000000 +0100 @@ -1,7 +1,7 @@ # # spec file for package rubygem-simplecov # -# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -24,13 +24,13 @@ # Name: rubygem-simplecov -Version: 0.9.1 +Version: 0.9.2 Release: 0 %define mod_name simplecov %define mod_full_name %{mod_name}-%{version} BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: %{ruby >= 1.8.7} BuildRequires: %{rubygem gem2rpm} -BuildRequires: %{ruby} BuildRequires: ruby-macros >= 5 Url: http://github.com/colszowka/simplecov Source: http://rubygems.org/gems/%{mod_full_name}.gem ++++++ simplecov-0.9.1.gem -> simplecov-0.9.2.gem ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/.travis.yml new/.travis.yml --- old/.travis.yml 2014-09-21 13:52:55.000000000 +0200 +++ new/.travis.yml 2015-02-18 15:46:13.000000000 +0100 @@ -1,12 +1,24 @@ language: ruby + +before_install: + - gem install bundler + +bundler_args: --without development --jobs=3 --retry=3 + +cache: bundler + +sudo: false + rvm: - 1.8.7 - 1.9.3 - 2.0.0 - 2.1 + - 2.2 - ruby-head - jruby - rbx-2 + matrix: allow_failures: - rvm: ruby-head diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CHANGELOG.md new/CHANGELOG.md --- old/CHANGELOG.md 2014-09-21 13:52:55.000000000 +0200 +++ new/CHANGELOG.md 2015-02-18 15:46:13.000000000 +0100 @@ -1,10 +1,31 @@ -Unreleased ([changes](https://github.com/colszowka/simplecov/compare/v0.9.1...master)) +Unreleased ([changes](https://github.com/colszowka/simplecov/compare/v0.9.2...master)) ==================== ## Enhancements ## Bugfixes +0.9.2, 2015-02-18 ([changes](https://github.com/colszowka/simplecov/compare/v0.9.1...v0.9.2)) +==================== + +This is a minor bugfix release for simplecov-html, released as `0.9.0`. Due to the tight version constraint in the gemspec +a new release of simplecov had to be shipped to allow using simplecov-html `~> 0.9.0`. + + * The browser back / forward button should now work again. See [#36](https://github.com/colszowka/simplecov-html/pull/36) and + [#35](https://github.com/colszowka/simplecov-html/pull/35). Thanks @whatasunnyday and @justinsteele for submitting PRs to fix this. + * Fix "warning: possibly useless use of a variable in void context" See [#31](https://github.com/colszowka/simplecov-html/pull/31). Thanks @cbandy + * Always use binary file format. See [#32](https://github.com/colszowka/simplecov-html/pull/32). Thanks @andy128k + * Avoid slow file output with JRuby/Windows. See [#16](https://github.com/colszowka/simplecov-html/pull/16). Thanks @pschambacher + +Other than the release includes a bunch of mostly documentation improvements: + + * Update Rails path for Rails 4+. See [#336](https://github.com/colszowka/simplecov/pull/336). Thanks @yazinsai + * Encourage use of .simplecov to avoid lost files. See [#338](https://github.com/colszowka/simplecov/pull/338). thanks @dankohn + * Specified in the gemspec that simplecov needs ruby 1.8.7. See [#343](https://github.com/colszowka/simplecov/pull/343). thanks @iainbeeston + * Fix mispointed link in CHANGELOG.md. See [#353](https://github.com/colszowka/simplecov/pull/353). Thanks @dleve123 + * Improve command name docs. See [#356](https://github.com/colszowka/simplecov/pull/356). Thanks @gtd + + 0.9.1, 2014-09-21 ([changes](https://github.com/colszowka/simplecov/compare/v0.9.0...v0.9.1)) ==================== @@ -43,7 +64,7 @@ * Does not look for .simplecov in ~/ when $HOME is not set. See [#311](https://github.com/colszowka/simplecov/pull/311) (thanks @lasseebert) * Exit with code only if it's Numeric > 0. - See [#302](https://github.com/colszowka/simplecov/pull/303)(thanks @hajder) + See [#302](https://github.com/colszowka/simplecov/pull/302) (thanks @hajder) * Make default filter case insensitive. See [#280](https://github.com/colszowka/simplecov/pull/280) (thanks @ryanatball) * Improve regexp that matches functional tests. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Gemfile new/Gemfile --- old/Gemfile 2014-09-21 13:52:55.000000000 +0200 +++ new/Gemfile 2015-02-18 15:46:13.000000000 +0100 @@ -6,22 +6,28 @@ # Uncomment this to use development version of html formatter from github # gem 'simplecov-html', :github => 'colszowka/simplecov-html' -gemspec - gem 'rake', '>= 10.3' group :test do - gem 'activesupport', '~> 3.2.0' # Older version required for Ruby 1.8.7 support + # Older versions of some gems required for Ruby 1.8.7 support + platform :ruby_18 do + gem 'activesupport', '~> 3.2.21' + gem 'shoulda-matchers', '~> 2.0.0' + gem 'i18n', '~> 0.6.11' + end + gem 'minitest', '>= 5.5' gem 'rspec', '>= 3.0' gem 'rspec-legacy_formatters', '>= 1.0' gem 'shoulda', '>= 3.5' - gem 'shoulda-matchers', '~> 2.0.0' # Older version required for Ruby 1.8.7 support end -if 'Integration test (cucumber) suite is 1.9+ only'.respond_to?(:encoding) +platform :jruby, :ruby_19, :ruby_20, :ruby_21, :ruby_22 do gem 'aruba', '~> 0.6' gem 'capybara', '~> 2.0.0' - gem 'poltergeist', '~> 1.1' - gem 'phantomjs', '~> 1.9' gem 'cucumber', '~> 1.1' + gem 'phantomjs', '~> 1.9' + gem 'poltergeist', '~> 1.1' + gem 'test-unit', '~> 3.0' end + +gemspec diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/README.md new/README.md --- old/README.md 2014-09-21 13:52:55.000000000 +0200 +++ new/README.md 2015-02-18 15:46:13.000000000 +0100 @@ -9,7 +9,7 @@ * [Mailing List] * [Continuous Integration] -**Important Notice: There is a bug that affects exit code handling on the 0.8 line of SimpleCov, see [#281](https://github.com/colszowka/simplecov/issues/281). Please use versions `~> 0.7.1` or `~> 0.9.0` to avoid this.** +**Important Notice: There is a bug that affects exit code handling on the 0.8 line of SimpleCov, see [#281](https://github.com/colszowka/simplecov/issues/281). Please use versions `~> 0.9.0` to avoid this.** [Coverage]: http://www.ruby-doc.org/stdlib-2.1.0/libdoc/coverage/rdoc/Coverage.html "API doc for Ruby's Coverage library" [Source Code]: https://github.com/colszowka/simplecov "Source Code @ GitHub" @@ -75,7 +75,7 @@ SimpleCov must be running in the process that you want the code coverage analysis to happen on. When testing a server process (i.e. a JSON API endpoint) via a separate test process (i.e. when using Selenium) where you want to see all code executed by the `rails server`, and not just code executed in your actual test files, you'll want to add something -like this to the top of `script/rails`: +like this to the top of `script/rails` (or `bin/rails` for Rails 4.*): ```ruby if ENV['RAILS_ENV'] == 'test' @@ -251,6 +251,7 @@ # any custom configs like groups and filters can be here at a central place end ``` +Using `.simplecov` rather than separately requiring SimpleCov multiple times is recommended if you are merging multiple test frameworks like Cucumber and RSpec that rely on each other, as invoking SimpleCov multiple times can cause coverage information to be lost. ## Filters @@ -378,7 +379,7 @@ that invoked the test suite as a command name. If you have some non-standard setup and still want nicely labeled test suites, you have to give Simplecov a cue as to what the -name of the currently running test suite is. You can do so by specifying SimpleCov.command_name in one test file that is +name of the currently running test suite is. You can do so by specifying `SimpleCov.command_name` in one test file that is part of your specific suite. To customize the suite names on a Rails app (yeah, sorry for being Rails-biased, but everyone knows what @@ -402,14 +403,25 @@ Note that this only has to be invoked ONCE PER TEST SUITE, so even if you have 200 unit test files, specifying it in some_test.rb is enough. +Last but not least **if multiple suites resolve to the same `command_name`** be aware that the coverage results **will +clobber each other instead of being merged**. SimpleCov is smart enough to detect unique names for the most common +setups, but if you have more than one test suite that doesn't follow a common pattern then you will want to manually +ensure that each suite gets a unique `command_name`. + +If you are running tests in parallel each process has the potential to clobber results from the other test processes. +If you are relying on the default `command_name` then SimpleCov will attempt to detect and avoid parallel test suite +`command_name` collisions based on the presence of `ENV['PARALLEL_TEST_GROUPS']` and `ENV['TEST_ENV_NUMBER']`. If your +parallel test runner does not set one or both of these then *you must* set a `command_name` and ensure that it is unique +per process (eg. `command_name "Unit Tests PID #{$$}"`). + [simplecov-html] prints the used test suites in the footer of the generated coverage report. ### Timeout for merge Of course, your cached coverage data is likely to become invalid at some point. Thus, result sets that are older than -SimpleCov.merge_timeout will not be used any more. By default, the timeout is 600 seconds (10 minutes), and you can +`SimpleCov.merge_timeout` will not be used any more. By default, the timeout is 600 seconds (10 minutes), and you can raise (or lower) it by specifying `SimpleCov.merge_timeout 3600` (1 hour), or, inside a configure/start block, with -just "merge_timeout 3600". +just `merge_timeout 3600`. You can deactivate merging altogether with `SimpleCov.use_merging false`. @@ -587,6 +599,11 @@ A formatter that generates a coverage badge for use in your project's readme using ImageMagick. +#### [simplecov-cobertura](https://github.com/dashingrocket/simplecov-cobertura) +*by Jesse Bowes* + +A formatter that generates Cobertura XML. + ## Ruby version compatibility [![Build Status](https://secure.travis-ci.org/colszowka/simplecov.png)](http://travis-ci.org/colszowka/simplecov) @@ -596,7 +613,7 @@ test suite crash right now. Whether SimpleCov will support JRuby/Rubinius in the future depends solely on whether those Ruby interpreters add the coverage library. -SimpleCov is built in [Continuous Integration] on 1.9.3, 2.0.0, 2.1.0 and ruby-head. +SimpleCov is built in [Continuous Integration] on Ruby 1.9.3, 2.0.0, 2.1, and 2.2. ## Want to find dead code in production? diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Rakefile new/Rakefile --- old/Rakefile 2014-09-21 13:52:55.000000000 +0200 +++ new/Rakefile 2015-02-18 15:46:13.000000000 +0100 @@ -21,7 +21,7 @@ end # Cucumber integration test suite is for impls that work with simplecov only - a.k.a. 1.9+ -if '1.9+'.respond_to? :encoding +if RUBY_VERSION >= "1.9" require 'cucumber/rake/task' Cucumber::Rake::Task.new task :default => [:test, :cucumber] Files old/checksums.yaml.gz and new/checksums.yaml.gz differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/features/support/env.rb new/features/support/env.rb --- old/features/support/env.rb 2014-09-21 13:52:55.000000000 +0200 +++ new/features/support/env.rb 2015-02-18 15:46:13.000000000 +0100 @@ -1,4 +1,4 @@ -unless '1.9'.respond_to?(:encoding) +if RUBY_VERSION < "1.9" $stderr.puts "Sorry, Cucumber features are only meant to run on Ruby 1.9+ :(" exit 0 end @@ -8,6 +8,7 @@ require 'aruba/cucumber' require 'aruba/jruby' if RUBY_ENGINE == 'jruby' require 'capybara/cucumber' +require 'minitest/autorun' require 'phantomjs/poltergeist' # Fake rack app for capybara that just returns the latest coverage report from aruba temp project dir diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/simplecov/version.rb new/lib/simplecov/version.rb --- old/lib/simplecov/version.rb 2014-09-21 13:52:55.000000000 +0200 +++ new/lib/simplecov/version.rb 2015-02-18 15:46:13.000000000 +0100 @@ -1,3 +1,3 @@ module SimpleCov - VERSION = "0.9.1" + VERSION = "0.9.2" end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/metadata new/metadata --- old/metadata 2014-09-21 13:52:55.000000000 +0200 +++ new/metadata 2015-02-18 15:46:13.000000000 +0100 @@ -1,14 +1,14 @@ --- !ruby/object:Gem::Specification name: simplecov version: !ruby/object:Gem::Version - version: 0.9.1 + version: 0.9.2 platform: ruby authors: - Christoph Olszowka autorequire: bindir: bin cert_chain: [] -date: 2014-09-21 00:00:00.000000000 Z +date: 2015-02-18 00:00:00.000000000 Z dependencies: - !ruby/object:Gem::Dependency name: multi_json @@ -30,14 +30,14 @@ requirements: - - "~>" - !ruby/object:Gem::Version - version: 0.8.0 + version: 0.9.0 type: :runtime prerelease: false version_requirements: !ruby/object:Gem::Requirement requirements: - - "~>" - !ruby/object:Gem::Version - version: 0.8.0 + version: 0.9.0 - !ruby/object:Gem::Dependency name: docile requirement: !ruby/object:Gem::Requirement @@ -181,7 +181,7 @@ requirements: - - ">=" - !ruby/object:Gem::Version - version: '0' + version: 1.8.7 required_rubygems_version: !ruby/object:Gem::Requirement requirements: - - ">=" @@ -189,7 +189,7 @@ version: '0' requirements: [] rubyforge_project: -rubygems_version: 2.2.2 +rubygems_version: 2.4.5 signing_key: specification_version: 4 summary: Code coverage for Ruby 1.9+ with a powerful configuration library and automatic diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/simplecov.gemspec new/simplecov.gemspec --- old/simplecov.gemspec 2014-09-21 13:52:55.000000000 +0200 +++ new/simplecov.gemspec 2015-02-18 15:46:13.000000000 +0100 @@ -13,8 +13,9 @@ gem.summary = gem.description gem.license = "MIT" + gem.required_ruby_version = ">= 1.8.7" gem.add_dependency 'multi_json', '~> 1.0' - gem.add_dependency 'simplecov-html', '~> 0.8.0' + gem.add_dependency 'simplecov-html', '~> 0.9.0' gem.add_dependency 'docile', '~> 1.1.0' gem.files = `git ls-files`.split("\n") diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/test/helper.rb new/test/helper.rb --- old/test/helper.rb 2014-09-21 13:52:55.000000000 +0200 +++ new/test/helper.rb 2015-02-18 15:46:13.000000000 +0100 @@ -1,21 +1,19 @@ require 'bundler/setup' require 'simplecov' -require 'test/unit' +require 'minitest/autorun' require 'shoulda' SimpleCov.coverage_dir('tmp/coverage') -class Test::Unit::TestCase - def source_fixture(filename) - File.expand_path(File.join(File.dirname(__FILE__), 'fixtures', filename)) - end +def source_fixture(filename) + File.expand_path(File.join(File.dirname(__FILE__), 'fixtures', filename)) end require 'shoulda_macros' -Test::Unit::TestCase.send :extend, ShouldaMacros +Minitest::Test.send :extend, ShouldaMacros # Taken from http://stackoverflow.com/questions/4459330/how-do-i-temporarily-redirect-stderr-in-ruby -require "stringio" +require 'stringio' def capture_stderr # The output stream must be an IO-like object. In this case we capture it in diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/test/test_1_8_fallbacks.rb new/test/test_1_8_fallbacks.rb --- old/test/test_1_8_fallbacks.rb 2014-09-21 13:52:55.000000000 +0200 +++ new/test/test_1_8_fallbacks.rb 2015-02-18 15:46:13.000000000 +0100 @@ -6,7 +6,7 @@ # TODO: This should be expanded upon all methods that could potentially # be called in a test/spec-helper simplecov config block # -class Test18FallBacks < Test::Unit::TestCase +class Test18FallBacks < Minitest::Test should "return false when calling SimpleCov.start" do assert_equal false, SimpleCov.start end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/test/test_command_guesser.rb new/test/test_command_guesser.rb --- old/test/test_command_guesser.rb 2014-09-21 13:52:55.000000000 +0200 +++ new/test/test_command_guesser.rb 2015-02-18 15:46:13.000000000 +0100 @@ -1,6 +1,6 @@ require 'helper' -class TestCommandGuesser < Test::Unit::TestCase +class TestCommandGuesser < Minitest::Test def self.should_guess_command_name(expectation, *argv) argv.each do |args| should "return '#{expectation}' for '#{args}'" do diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/test/test_deleted_source.rb new/test/test_deleted_source.rb --- old/test/test_deleted_source.rb 2014-09-21 13:52:55.000000000 +0200 +++ new/test/test_deleted_source.rb 2015-02-18 15:46:13.000000000 +0100 @@ -2,7 +2,7 @@ # Test to verify correct handling of deleted files, # see issue #9 on github -class TestDeletedSource < Test::Unit::TestCase +class TestDeletedSource < Minitest::Test context "A source file which is subsequently deleted" do should "not cause an error" do Dir.chdir(File.join(File.dirname(__FILE__), 'fixtures')) do diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/test/test_file_list.rb new/test/test_file_list.rb --- old/test/test_file_list.rb 2014-09-21 13:52:55.000000000 +0200 +++ new/test/test_file_list.rb 2015-02-18 15:46:13.000000000 +0100 @@ -1,6 +1,6 @@ require 'helper' -class TestFileList < Test::Unit::TestCase +class TestFileList < Minitest::Test context "With a file list from a result" do setup do original_result = {source_fixture('sample.rb') => [nil, 1, 1, 1, nil, nil, 1, 1, nil, nil], diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/test/test_filters.rb new/test/test_filters.rb --- old/test/test_filters.rb 2014-09-21 13:52:55.000000000 +0200 +++ new/test/test_filters.rb 2015-02-18 15:46:13.000000000 +0100 @@ -1,6 +1,6 @@ require 'helper' -class TestFilters < Test::Unit::TestCase +class TestFilters < Minitest::Test context "A source file initialized with some coverage data" do setup do @source_file = SimpleCov::SourceFile.new(source_fixture('sample.rb'), [nil, 1, 1, 1, nil, nil, 1, 0, nil, nil]) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/test/test_merge_helpers.rb new/test/test_merge_helpers.rb --- old/test/test_merge_helpers.rb 2014-09-21 13:52:55.000000000 +0200 +++ new/test/test_merge_helpers.rb 2015-02-18 15:46:13.000000000 +0100 @@ -1,6 +1,10 @@ require 'helper' -class TestMergeHelpers < Test::Unit::TestCase +class TestMergeHelpers < Minitest::Test + def self.test_order + :alpha + end + context "With two faked coverage resultsets" do setup do SimpleCov.use_merging true diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/test/test_result.rb new/test/test_result.rb --- old/test/test_result.rb 2014-09-21 13:52:55.000000000 +0200 +++ new/test/test_result.rb 2015-02-18 15:46:13.000000000 +0100 @@ -1,6 +1,6 @@ require 'helper' -class TestResult < Test::Unit::TestCase +class TestResult < Minitest::Test context "With a (mocked) Coverage.result" do setup do SimpleCov.filters = [] diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/test/test_return_codes.rb new/test/test_return_codes.rb --- old/test/test_return_codes.rb 2014-09-21 13:52:55.000000000 +0200 +++ new/test/test_return_codes.rb 2015-02-18 15:46:13.000000000 +0100 @@ -2,7 +2,11 @@ # Make sure that exit codes of tests are propagated properly when using # simplecov. See github issue #5 -class TestReturnCodes < Test::Unit::TestCase +class TestReturnCodes < Minitest::Test + def self.test_order + :alpha + end + context "Inside fixtures/frameworks" do setup do @current_dir = Dir.getwd @@ -22,12 +26,12 @@ should "have non-0 return code when running testunit_bad.rb" do `ruby testunit_bad.rb` - assert_not_equal 0, $?.exitstatus + refute_equal 0, $?.exitstatus end should "have return code 1 when running rspec_bad.rb" do `rspec rspec_bad.rb` - assert_not_equal 0, $?.exitstatus + refute_equal 0, $?.exitstatus end teardown do diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/test/test_source_file.rb new/test/test_source_file.rb --- old/test/test_source_file.rb 2014-09-21 13:52:55.000000000 +0200 +++ new/test/test_source_file.rb 2015-02-18 15:46:13.000000000 +0100 @@ -1,6 +1,6 @@ require 'helper' -class TestSourceFile < Test::Unit::TestCase +class TestSourceFile < Minitest::Test COVERAGE_FOR_SAMPLE_RB = [nil, 1, 1, 1, nil, nil, 1, 0, nil, nil, nil, nil, nil, nil, nil, nil] context "A source file initialized with some coverage data" do setup do @@ -70,37 +70,4 @@ assert_match(/^Warning: coverage data provided/, captured_output) end end - - context "Encoding" do - should "handle utf-8 encoded source files" do - source_file = SimpleCov::SourceFile.new(source_fixture('utf-8.rb'), [nil, nil, 1]) - - assert_nothing_raised do - source_file.process_skipped_lines! - end - end - - should "handle iso-8859 encoded source files" do - source_file = SimpleCov::SourceFile.new(source_fixture('iso-8859.rb'), [nil, nil, 1]) - - assert_nothing_raised do - source_file.process_skipped_lines! - end - end - - should "handle utf-8 encoded source files when the default_internal encoding is binary" do - original_internal_encoding = Encoding.default_internal - Encoding.default_internal = "BINARY" - begin - source_file = SimpleCov::SourceFile.new(source_fixture('utf-8.rb'), [nil, nil, 1]) - ensure - Encoding.default_internal = original_internal_encoding - end - - assert_nothing_raised do - source_file.process_skipped_lines! - end - end - end end if SimpleCov.usable? - diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/test/test_source_file_line.rb new/test/test_source_file_line.rb --- old/test/test_source_file_line.rb 2014-09-21 13:52:55.000000000 +0200 +++ new/test/test_source_file_line.rb 2015-02-18 15:46:13.000000000 +0100 @@ -1,6 +1,6 @@ require 'helper' -class TestSourceFileLine < Test::Unit::TestCase +class TestSourceFileLine < Minitest::Test context "A source line" do setup do @line = SimpleCov::SourceFile::Line.new('# the ruby source', 5, 3) @@ -87,19 +87,19 @@ end should "raise ArgumentError when initialized with invalid src" do - assert_raise ArgumentError do + assert_raises ArgumentError do SimpleCov::SourceFile::Line.new(:symbol, 5, 3) end end should "raise ArgumentError when initialized with invalid line_number" do - assert_raise ArgumentError do + assert_raises ArgumentError do SimpleCov::SourceFile::Line.new("some source", "five", 3) end end should "raise ArgumentError when initialized with invalid coverage" do - assert_raise ArgumentError do + assert_raises ArgumentError do SimpleCov::SourceFile::Line.new("some source", 5, "three") end end -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org