Diff of the two buildlogs: -- --- b1/build.log 2025-01-26 10:50:21.197279713 +0000 +++ b2/build.log 2025-01-26 10:52:58.414201575 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Sat Jan 25 22:48:18 -12 2025 -I: pbuilder-time-stamp: 1737888498 +I: Current time: Sun Mar 1 07:13:23 +14 2026 +I: pbuilder-time-stamp: 1772298803 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/trixie-reproducible-base.tgz] I: copying local configuration @@ -29,51 +29,83 @@ dpkg-source: info: applying 0006-warning-Calling-Kernel-open-with-a-leading-is-deprec.patch I: Not using root during the build. I: Installing the build-deps -I: user script /srv/workspace/pbuilder/2252366/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/1623782/tmp/hooks/D01_modify_environment starting +debug: Running on infom02-amd64. +I: Changing host+domainname to test build reproducibility +I: Adding a custom variable just for the fun of it... +I: Changing /bin/sh to bash +'/bin/sh' -> '/bin/bash' +lrwxrwxrwx 1 root root 9 Feb 28 17:13 /bin/sh -> /bin/bash +I: Setting pbuilder2's login shell to /bin/bash +I: Setting pbuilder2's GECOS to second user,second room,second work-phone,second home-phone,second other +I: user script /srv/workspace/pbuilder/1623782/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/1623782/tmp/hooks/D02_print_environment starting I: set - BUILDDIR='/build/reproducible-path' - BUILDUSERGECOS='first user,first room,first work-phone,first home-phone,first other' - BUILDUSERNAME='pbuilder1' - BUILD_ARCH='amd64' - DEBIAN_FRONTEND='noninteractive' + BASH=/bin/sh + BASHOPTS=checkwinsize:cmdhist:complete_fullquote:extquote:force_fignore:globasciiranges:globskipdots:hostcomplete:interactive_comments:patsub_replacement:progcomp:promptvars:sourcepath + BASH_ALIASES=() + BASH_ARGC=() + BASH_ARGV=() + BASH_CMDS=() + BASH_LINENO=([0]="12" [1]="0") + BASH_LOADABLES_PATH=/usr/local/lib/bash:/usr/lib/bash:/opt/local/lib/bash:/usr/pkg/lib/bash:/opt/pkg/lib/bash:. + BASH_SOURCE=([0]="/tmp/hooks/D02_print_environment" [1]="/tmp/hooks/D02_print_environment") + BASH_VERSINFO=([0]="5" [1]="2" [2]="37" [3]="1" [4]="release" [5]="x86_64-pc-linux-gnu") + BASH_VERSION='5.2.37(1)-release' + BUILDDIR=/build/reproducible-path + BUILDUSERGECOS='second user,second room,second work-phone,second home-phone,second other' + BUILDUSERNAME=pbuilder2 + BUILD_ARCH=amd64 + DEBIAN_FRONTEND=noninteractive DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=12 ' - DISTRIBUTION='trixie' - HOME='/root' - HOST_ARCH='amd64' + DIRSTACK=() + DISTRIBUTION=trixie + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=x86_64 + HOST_ARCH=amd64 IFS=' ' - INVOCATION_ID='c4739b3a3e6d4d31a4d7e6952da41c90' - LANG='C' - LANGUAGE='en_US:en' - LC_ALL='C' - MAIL='/var/mail/root' - OPTIND='1' - PATH='/usr/sbin:/usr/bin:/sbin:/bin:/usr/games' - PBCURRENTCOMMANDLINEOPERATION='build' - PBUILDER_OPERATION='build' - PBUILDER_PKGDATADIR='/usr/share/pbuilder' - PBUILDER_PKGLIBDIR='/usr/lib/pbuilder' - PBUILDER_SYSCONFDIR='/etc' - PPID='2252366' - PS1='# ' - PS2='> ' + INVOCATION_ID=f7f139f8e9f34ac988757be83f82a4bd + LANG=C + LANGUAGE=et_EE:et + LC_ALL=C + MACHTYPE=x86_64-pc-linux-gnu + MAIL=/var/mail/root + OPTERR=1 + OPTIND=1 + OSTYPE=linux-gnu + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path + PBCURRENTCOMMANDLINEOPERATION=build + PBUILDER_OPERATION=build + PBUILDER_PKGDATADIR=/usr/share/pbuilder + PBUILDER_PKGLIBDIR=/usr/lib/pbuilder + PBUILDER_SYSCONFDIR=/etc + PIPESTATUS=([0]="0") + POSIXLY_CORRECT=y + PPID=1623782 PS4='+ ' - PWD='/' - SHELL='/bin/bash' - SHLVL='2' - SUDO_COMMAND='/usr/bin/timeout -k 18.1h 18h /usr/bin/ionice -c 3 /usr/bin/nice /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/r-b-build.VkN1in4Y/pbuilderrc_rOIo --distribution trixie --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/trixie-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.VkN1in4Y/b1 --logfile b1/build.log ruby-simplecov_0.22.0-2.dsc' - SUDO_GID='109' - SUDO_UID='104' - SUDO_USER='jenkins' - TERM='unknown' - TZ='/usr/share/zoneinfo/Etc/GMT+12' - USER='root' - _='/usr/bin/systemd-run' + PWD=/ + SHELL=/bin/bash + SHELLOPTS=braceexpand:errexit:hashall:interactive-comments:posix + SHLVL=3 + SUDO_COMMAND='/usr/bin/timeout -k 24.1h 24h /usr/bin/ionice -c 3 /usr/bin/nice -n 11 /usr/bin/unshare --uts -- /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/r-b-build.VkN1in4Y/pbuilderrc_E7d0 --distribution trixie --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/trixie-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.VkN1in4Y/b2 --logfile b2/build.log ruby-simplecov_0.22.0-2.dsc' + SUDO_GID=109 + SUDO_UID=104 + SUDO_USER=jenkins + TERM=unknown + TZ=/usr/share/zoneinfo/Etc/GMT-14 + UID=0 + USER=root + _='I: set' I: uname -a - Linux infom01-amd64 6.1.0-30-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.124-1 (2025-01-12) x86_64 GNU/Linux + Linux i-capture-the-hostname 6.12.9+bpo-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.9-1~bpo12+1 (2025-01-19) x86_64 GNU/Linux I: ls -l /bin - lrwxrwxrwx 1 root root 7 Nov 22 14:40 /bin -> usr/bin -I: user script /srv/workspace/pbuilder/2252366/tmp/hooks/D02_print_environment finished + lrwxrwxrwx 1 root root 7 Nov 22 2024 /bin -> usr/bin +I: user script /srv/workspace/pbuilder/1623782/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -276,7 +308,7 @@ Get: 153 http://deb.debian.org/debian trixie/main amd64 ruby-rspec-mocks all 3.13.0c0e0m0s1-2 [81.3 kB] Get: 154 http://deb.debian.org/debian trixie/main amd64 ruby-rspec all 3.13.0c0e0m0s1-2 [5184 B] Get: 155 http://deb.debian.org/debian trixie/main amd64 ruby-simplecov-html all 0.12.3-2 [468 kB] -Fetched 57.1 MB in 1s (99.5 MB/s) +Fetched 57.1 MB in 3s (19.4 MB/s) Preconfiguring packages ... Selecting previously unselected package libpython3.12-minimal:amd64. (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 19856 files and directories currently installed.) @@ -793,8 +825,8 @@ Setting up tzdata (2024b-6) ... Current default time zone: 'Etc/UTC' -Local time is now: Sun Jan 26 10:49:54 UTC 2025. -Universal Time is now: Sun Jan 26 10:49:54 UTC 2025. +Local time is now: Sat Feb 28 17:15:16 UTC 2026. +Universal Time is now: Sat Feb 28 17:15:16 UTC 2026. Run 'dpkg-reconfigure tzdata' if you wish to change it. Setting up autotools-dev (20220109.1) ... @@ -933,7 +965,11 @@ Building tag database... -> Finished parsing the build-deps I: Building the package -I: Running cd /build/reproducible-path/ruby-simplecov-0.22.0/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-genchanges -S > ../ruby-simplecov_0.22.0-2_source.changes +I: user script /srv/workspace/pbuilder/1623782/tmp/hooks/A99_set_merged_usr starting +Not re-configuring usrmerge for trixie +I: user script /srv/workspace/pbuilder/1623782/tmp/hooks/A99_set_merged_usr finished +hostname: Name or service not known +I: Running cd /build/reproducible-path/ruby-simplecov-0.22.0/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-genchanges -S > ../ruby-simplecov_0.22.0-2_source.changes dpkg-buildpackage: info: source package ruby-simplecov dpkg-buildpackage: info: source version 0.22.0-2 dpkg-buildpackage: info: source distribution unstable @@ -967,13 +1003,13 @@ │ ruby-simplecov: Installing files and building extensions for ruby3.1 │ └──────────────────────────────────────────────────────────────────────────────┘ -/usr/bin/ruby3.1 -S gem build --config-file /dev/null --verbose /tmp/d20250125-2264436-63y8vh/gemspec +/usr/bin/ruby3.1 -S gem build --config-file /dev/null --verbose /tmp/d20260301-1642519-35quxb/gemspec Failed to load /dev/null because it doesn't contain valid YAML hash Successfully built RubyGem Name: simplecov Version: 0.22.0 File: simplecov-0.22.0.gem -/usr/bin/ruby3.1 -S gem install --config-file /dev/null --verbose --local --verbose --no-document --ignore-dependencies --install-dir debian/ruby-simplecov/usr/share/rubygems-integration/all /tmp/d20250125-2264436-63y8vh/simplecov-0.22.0.gem +/usr/bin/ruby3.1 -S gem install --config-file /dev/null --verbose --local --verbose --no-document --ignore-dependencies --install-dir debian/ruby-simplecov/usr/share/rubygems-integration/all /tmp/d20260301-1642519-35quxb/simplecov-0.22.0.gem Failed to load /dev/null because it doesn't contain valid YAML hash /build/reproducible-path/ruby-simplecov-0.22.0/debian/ruby-simplecov/usr/share/rubygems-integration/all/gems/simplecov-0.22.0/lib/minitest/simplecov_plugin.rb /build/reproducible-path/ruby-simplecov-0.22.0/debian/ruby-simplecov/usr/share/rubygems-integration/all/gems/simplecov-0.22.0/lib/simplecov.rb @@ -1060,642 +1096,642 @@ mv test_projects/rails/rspec_rails/Gemfile.lock test_projects/rails/rspec_rails/.gem2deb.Gemfile.lock /usr/bin/ruby3.1 -I/usr/share/rubygems-integration/all/gems/rspec-support-3.13.1/lib:/usr/share/rubygems-integration/all/gems/rspec-core-3.13.0/lib /usr/share/rubygems-integration/all/gems/rspec-core-3.13.0/exe/rspec --pattern ./spec/\*\*/\*_spec.rb --exclude-pattern ./spec/default_formatter_spec.rb,./spec/gemspec_spec.rb --format documentation -Randomized with seed 28079 - -SimpleCov::ExitCodes::MinimumCoverageByFileCheck - one file violating requirements - is expected to be failing - all files passing requirements - is expected not to be failing - -SimpleCov::CoverageStatistics - .from - returns all empty statistics when initialized with a couple of empty results - produces sensible total results - returns an all 0s coverage statistics if there are no statistics - .new - can omit the total strength defaulting to 0.0 - can deal with it if everything is 0 - retains statistics and computes new ones - -SimpleCov - .exit_status_from_exception - when a non SystemExit occurs - return SimpleCov::ExitCodes::EXCEPTION - when a SystemExit has occurred - returns the SystemExit status - when no exception has occurred - returns nil - .result - with merging enabled - when running - adds not-loaded-files - caches its result - uses the result from Coverage - stores the current coverage - merges the result - when not running - merges the result - with merging disabled - when running - doesn't merge the result - caches its result - doesn't store the current coverage - adds not-loaded-files - uses the result from Coverage - when not running - returns nil - .process_result - when minimum coverage is 100% - branch coverage - errors out when the coverage is too low - when actual coverage is almost 100% - return SimpleCov::ExitCodes::MINIMUM_COVERAGE - when actual coverage is exactly 100% - return SimpleCov::ExitCodes::SUCCESS - .collate - when files to be merged - and multiple reports to be merged, one of them outdated - creates a merged report with only the results from the current resultset if ignore_timeout: false - ignores timeout by default creating a report with all values - and a single report to be merged - creates a merged report identical to the original - and multiple reports to be merged - creates a merged report - when no files to be merged - shows an error message - .start_coverage_measurement - starts coverage with lines and branches if branches is activated - starts coverage in lines mode by default - -SimpleCov::ResultMerger - .store_result - persists to disk - refreshes the resultset - synchronizes writes - resultset handling - returns an empty hash when the resultset cache file is not present - returns an empty hash when the resultset cache file is empty - .merge_and_store - merging behavior - 2 normal results - has the result stored - correctly merges the 2 results - 1 resultset is outdated - completely omits the result from the merge - includes it when we say ignore_timeout: true - both resultsets outdated - includes both when we say ignore_timeout: true - completely omits the result from the merge - pre 0.18 result format - gets the same content back but under "lines" - .synchronize_resultset - is reentrant (i.e. doesn't block its own process) - blocks other processes - .resultset - synchronizes reads - basic workings with 2 resultsets - has stored data in resultset_path JSON file - returns a hash containing keys ['result1' and 'result2'] for resultset - returns proper values for merged_result - with second result way above the merge_timeout - has only one result in SimpleCov::ResultMerger.results +Randomized with seed 1397 SimpleCov::SourceFile - matches a new SimpleCov::StringFilter 'spec/fixtures' - doesn't match a new SimpleCov::StringFilter '.pl' - doesn't match a new SimpleCov::ArrayFilter when a custom class that returns false is passed as array + doesn't match a new SimpleCov::ArrayFilter when a block that returns false is passed as array + matches a new SimpleCov::ArrayFilter when a block is passed as array and returns true + matches a new SimpleCov::ArrayFilter when 'sample.rb' is passed as array doesn't match a parent directory with a new SimpleCov::ArrayFilter - doesn't match a parent directory with a new SimpleCov::StringFilter - matches a new SimpleCov::ArrayFilter when /sample.rb/ is passed as array - matches a new SimpleCov::RegexFilter /^/spec// matches a new SimpleCov::BlockFilter that is applicable matches a new SimpleCov::StringFilter 'spec/fixtures/sample.rb' + doesn't match a new SimpleCov::RegexFilter /^/fixtures// + matches a new SimpleCov::StringFilter 'spec/fixtures' matches a new SimpleCov::ArrayFilter when two file paths including 'sample.rb' are passed as array - doesn't match a new SimpleCov::ArrayFilter when a file path different than /sample.rb/ is passed as array - matches a new SimpleCov::ArrayFilter when 'sample.rb' is passed as array + matches a new SimpleCov::RegexFilter /^/spec// + doesn't match a new SimpleCov::StringFilter 'foobar' matches a new SimpleCov::RegexFilter //fixtures// doesn't match a new SimpleCov::ArrayFilter when a file path different than 'sample.rb' is passed as array - doesn't match a new SimpleCov::BlockFilter that is not applicable - matches a new SimpleCov::ArrayFilter when a block is passed as array and returns true - doesn't match a new SimpleCov::StringFilter 'foobar' - doesn't match a new SimpleCov::RegexFilter /^/fixtures// matches a new SimpleCov::ArrayFilter when a custom class that returns true is passed as array - matches a new SimpleCov::StringFilter 'sample.rb' + doesn't match a new SimpleCov::StringFilter '.pl' + doesn't match a new SimpleCov::ArrayFilter when a custom class that returns false is passed as array + doesn't match a new SimpleCov::BlockFilter that is not applicable doesn't match a new SimpleCov::StringFilter 'some/path' - doesn't match a new SimpleCov::ArrayFilter when a block that returns false is passed as array + doesn't match a parent directory with a new SimpleCov::StringFilter + matches a new SimpleCov::ArrayFilter when /sample.rb/ is passed as array + doesn't match a new SimpleCov::ArrayFilter when a file path different than /sample.rb/ is passed as array + matches a new SimpleCov::StringFilter 'sample.rb' with the default configuration - outside the project - filters even if the sibling directory has SimpleCov.root as a prefix - filters inside the project filters hidden folders - filters hidden files + doesn't filter filters vendor/bundle + filters hidden files doesn't filter hidden files further down the path - doesn't filter + outside the project + filters + filters even if the sibling directory has SimpleCov.root as a prefix .class_for_argument returns SimpleCov::RegexFilter for a string returns SimpleCov::StringFilter for a string returns SimpleCov::RegexFilter for a string with no filters set up and a basic source file in an array - returns 1 item after executing SimpleCov.filtered on files when using a "fooo" string filter - returns 0 items after executing SimpleCov.filtered on files when using a block filter that returns true returns 0 items after executing SimpleCov.filtered on files when using a "spec/fixtures" string filter - returns 0 items after executing SimpleCov.filtered on files when using a "sample" string filter returns a FileList after filtering returns 1 item after executing SimpleCov.filtered on files when using an always-false block filter + returns 0 items after executing SimpleCov.filtered on files when using a block filter that returns true + returns 0 items after executing SimpleCov.filtered on files when using a "sample" string filter + returns 1 item after executing SimpleCov.filtered on files when using a "fooo" string filter + +SimpleCov::LinesClassifier + #classify + not-relevant lines + determines whitespace is not-relevant + comments + doesn't mistake interpolation as a comment + determines comments are not-relevant + :nocov: blocks + determines :nocov: blocks are not-relevant + determines all lines after a non-closing :nocov: as not-relevant + relevant lines + determines code as relevant + determines invalid UTF-8 byte sequences as relevant + +SimpleCov::CoverageStatistics + .new + can omit the total strength defaulting to 0.0 + can deal with it if everything is 0 + retains statistics and computes new ones + .from + returns an all 0s coverage statistics if there are no statistics + returns all empty statistics when initialized with a couple of empty results + produces sensible total results loading config without ENV[HOME] shouldn't raise any errors +SimpleCov::ExitCodes::MaximumCoverageDropCheck + old last_run.json format + is expected not to be failing + coverage expectation for a coverage that wasn't previously present + is expected not to be failing + last coverage lower then new coverage + is expected not to be failing + no last run coverage information + is expected not to be failing + last coverage higher than new coverage + is expected to be failing + but allowed drop is within range + is expected not to be failing + we're at the same coverage + is expected not to be failing + one coverage lower than maximum drop + is expected to be failing + but allowed drop is within range + is expected not to be failing + more coverage drop allowed + is expected not to be failing + +SimpleCov::CommandGuesser + correctly guesses "Unit Tests" for unit tests + correctly guesses "Cucumber Features" for cucumber features + correctly guesses "Integration Tests" for integration tests + defaults to RSpec because RSpec constant is defined + correctly guesses "RSpec" for RSpec + correctly guesses "Functional Tests" for functional tests + +SimpleCov::LastRun + writes json to its last_run_path that can be parsed again + defines a last_run_path + reading + a non empty result + reads json from its last_run_path + but the last_run file does not exist + returns nil + an empty result + returns nil + +SimpleCov::SourceFile::Line + raises ArgumentError when initialized with invalid src + raises ArgumentError when initialized with invalid coverage + raises ArgumentError when initialized with invalid line_number + a source line + has line number 5 + returns "# the ruby source" as src + has equal line_number, line and number + returns the same for source as for src + flagged as skipped! + status is skipped + is not covered + is not missed + is not never + is skipped + A source line with coverage + status is covered + is not skipped + is not missed + is covered + is not never + has coverage of 3 + A source line without coverage + is not skipped + is missed + has coverage of 0 + status is missed + is not covered + is not never + A source line with no code + is not missed + status is never + is not covered + has nil coverage + is not skipped + is never + +SimpleCov::SourceFile::Branch + a source branch if..else + correct branch report + skipping lines + can be skipped + isn't skipped by default + A source branch with coverage + is covered + is not missed + is neither covered not missed if skipped + #overlaps_with?(range) + overlaps with a range that fully includes everything + doesn't overlap with a range before its lines + overlaps with a range that pends in its middle + overlaps with a range that exactly includes it + overlaps with a range that partially includes its beginning + overlaps with a range that partially includes its end + doesn't overlap with a range beyond its lines + a source branch without coverage + isn't covered + is neither covered not missed if skipped + is missed + SimpleCov::Configuration #tracked_files + #refuse_coverage_drop + sets the right coverage value when called with `:line` and `:branch` + sets the right coverage value when called with `:branch` + sets the right coverage value when called with no args + sets the right coverage value when called with `:line` + when configured + returns the configured glob + and configured again with nil + returns nil + #primary_coverage + can set primary coverage to line + can't set primary coverage to arbitrary things + when branch coverage is enabled + can set primary coverage to branch + when branch coverage is not enabled + cannot set primary coverage to branch #maximum_coverage_drop behaves like setting coverage expectations - sets the right coverage when called with a hash of just line + sets the right coverage when called with a hash of just branch warns you about your usage - sets the right coverage when called with both line and branch - raises when trying to set branch coverage but not enabled - sets the right coverage value when called with a number raises when unknown coverage criteria provided - sets the right coverage when called with a hash of just branch does not warn you about your usage + raises when trying to set branch coverage but not enabled + sets the right coverage when called with both line and branch + sets the right coverage value when called with a number + sets the right coverage when called with a hash of just line when primary coverage is set sets the right coverage value when called with a number - #coverage_criteria - defaults to line - #minimum_coverage_by_file + when unconfigured + returns nil + #minimum_coverage behaves like setting coverage expectations - raises when trying to set branch coverage but not enabled + sets the right coverage when called with a hash of just branch + sets the right coverage when called with both line and branch raises when unknown coverage criteria provided sets the right coverage value when called with a number - sets the right coverage when called with both line and branch - sets the right coverage when called with a hash of just line warns you about your usage - sets the right coverage when called with a hash of just branch + sets the right coverage when called with a hash of just line does not warn you about your usage + raises when trying to set branch coverage but not enabled when primary coverage is set sets the right coverage value when called with a number - #primary_coverage - can set primary coverage to line - can't set primary coverage to arbitrary things - when branch coverage is not enabled - cannot set primary coverage to branch - when branch coverage is enabled - can set primary coverage to branch - #refuse_coverage_drop - sets the right coverage value when called with `:branch` - sets the right coverage value when called with `:line` - sets the right coverage value when called with no args - sets the right coverage value when called with `:line` and `:branch` - #enable_for_subprocesses - returns false by default - can be set to true - can be enabled and then disabled again #branch_coverage? - returns false for line coverage returns true of branch coverage is being measured + returns false for line coverage + #coverage_criteria + defaults to line + #enable_for_subprocesses + can be enabled and then disabled again + can be set to true + returns false by default #coverage_criterion - works fine with line - works fine setting it back and forth + works fine with :branch errors out on unknown coverage defaults to line - works fine with :branch - when unconfigured - returns nil - #minimum_coverage + works fine with line + works fine setting it back and forth + #enable_coverage + can enable branch coverage + can enable line again + can't enable arbitrary things + #minimum_coverage_by_file behaves like setting coverage expectations - raises when unknown coverage criteria provided - sets the right coverage value when called with a number - sets the right coverage when called with both line and branch - sets the right coverage when called with a hash of just branch - does not warn you about your usage sets the right coverage when called with a hash of just line + sets the right coverage when called with a hash of just branch warns you about your usage + raises when unknown coverage criteria provided + sets the right coverage when called with both line and branch + sets the right coverage value when called with a number raises when trying to set branch coverage but not enabled + does not warn you about your usage when primary coverage is set sets the right coverage value when called with a number - when configured - returns the configured glob - and configured again with nil - returns nil - #enable_coverage - can enable line again - can't enable arbitrary things - can enable branch coverage #print_error_status when manually set is expected to equal false when not manually set is expected to equal true -SimpleCov::Result - with a (mocked) Coverage.result - with some filters set up - has 2 files in a new simple cov result - has 80 covered percent - has [80.0, 80.0] covered percentages - with groups set up for all files - has 3 groups - has user.rb in 'Models' group - has sample_controller.rb in 'Controllers' group - and simple formatter being used - returns a formatted string with result.format! - and multi formatter being used - returns an array containing formatted string with result.format! - .from_hash - can consume multiple commands - with groups set up that do not match all files - has 1 item per group - has sample.rb in "Ungrouped" group - returns all groups as instances of SimpleCov::FileList - has 3 groups - a simple cov result initialized from that - responds to covered_percentages - has 3 filenames - responds to covered_lines - has 3 source files - has accurate covered percent - responds to missed_lines - responds to covered_percent - has accurate least covered file - returns an instance of SimpleCov::FileList for source_files and files - has files equal to source_files - responds to total_lines - responds to covered_strength - responds to least_covered_file - has accurate covered percentages - dumped with to_hash - is a hash - loaded back with from_hash - has the same timestamp - has the same covered_percentages - has the same original_result - has the same command_name - has the same covered_percent - has 3 source files +SimpleCov + profiles + provides a sensible test_frameworks profile + provides a sensible rails profile -SimpleCov::CommandGuesser - correctly guesses "Integration Tests" for integration tests - defaults to RSpec because RSpec constant is defined - correctly guesses "RSpec" for RSpec - correctly guesses "Cucumber Features" for cucumber features - correctly guesses "Unit Tests" for unit tests - correctly guesses "Functional Tests" for functional tests +SimpleCov + .exit_status_from_exception + when a non SystemExit occurs + return SimpleCov::ExitCodes::EXCEPTION + when no exception has occurred + returns nil + when a SystemExit has occurred + returns the SystemExit status + .result + with merging enabled + when not running + merges the result + when running + uses the result from Coverage + merges the result + adds not-loaded-files + stores the current coverage + caches its result + with merging disabled + when running + doesn't store the current coverage + uses the result from Coverage + caches its result + adds not-loaded-files + doesn't merge the result + when not running + returns nil + .start_coverage_measurement + starts coverage with lines and branches if branches is activated + starts coverage in lines mode by default + .process_result + when minimum coverage is 100% + when actual coverage is exactly 100% + return SimpleCov::ExitCodes::SUCCESS + when actual coverage is almost 100% + return SimpleCov::ExitCodes::MINIMUM_COVERAGE + branch coverage + errors out when the coverage is too low + .collate + when no files to be merged + shows an error message + when files to be merged + and multiple reports to be merged, one of them outdated + ignores timeout by default creating a report with all values + creates a merged report with only the results from the current resultset if ignore_timeout: false + and a single report to be merged + creates a merged report identical to the original + and multiple reports to be merged + creates a merged report -SimpleCov::UselessResultsRemover - Result ignore gem file path from result set - still retains the app path +SimpleCov::Formatter::MultiFormatter + .[] + constructs a formatter with multiple children SimpleCov::SourceFile - a source file initialized with some coverage data - has source equal to src - has all source lines of type SimpleCov::SourceFile::Line - has 'class Foo' as line(2).source - has a project filename which removes the project directory - has source_lines equal to lines - has 16 source lines - has a filename - line coverage - has 80% covered_percent - returns lines number 2, 3, 4, 7 for covered_lines - returns lines number 1, 5, 6, 9, 10, 16 for never_lines - returns lines number 8 for missed_lines - returns line numbers 11, 12, 13, 14, 15 for skipped_lines - branch coverage - has missed branches count 0 - is considered 100% branches covered - has covered branches count 0 - has total branches count 0 - has branch coverage report - a file with if/elsif - branch coverage - covers the branch that includes 42 - covers 3/6 - line coverage - covers 6/9 - a file with an uneven usage of # :nocov:s - branch coverage - has 5 branches marked as skipped - has 100% branch coverage on 1/1 - line coverage - reports 100% coverage on 4/4 - has 12 lines skipped - a file where everything is skipped and missed #563 - has 0.0 covered_percent - has 0.0 covered_strength - has no covered or missed lines - a file where everything is skipped/irrelevant but executed #563 - branch coverage - has no branches - has an empty branch report - does has neither covered nor missed branches - line coverage - has no covered lines - has a whole lot of skipped lines - has no relevant lines - has no missed lines - has 0.0 covered_strength - has 0.0 covered_percent - a file that is never relevant - has 0.0 covered_strength - has 100.0 covered_percent - has 100.0 branch coverage - simulating potential Ruby 1.9 defect -- see Issue #56 - has 16 source lines regardless of extra data in coverage array - prints a warning to stderr if coverage array contains more data than lines in the file - a file with nested branches - line coverage - covers 6/7 - branch coverage - registered 2 hits for the while branch - covers 3/5 a file contains non-ASCII characters - UTF-8 without magic comment + empty euc-jp file + has empty lines + UTF-8 with magic comment has the line with 135°C behaves like converting to UTF-8 has all source lines of encoding UTF-8 - EUC-JP with magic comment and shebang - has all the right lines - behaves like converting to UTF-8 - has all source lines of encoding UTF-8 EUC-JP with magic comment has the line with 135°C behaves like converting to UTF-8 has all source lines of encoding UTF-8 - empty euc-jp file - has empty lines - UTF-8 with magic comment + EUC-JP with magic comment and shebang + has all the right lines + behaves like converting to UTF-8 + has all source lines of encoding UTF-8 + UTF-8 without magic comment has the line with 135°C behaves like converting to UTF-8 has all source lines of encoding UTF-8 + simulating potential Ruby 1.9 defect -- see Issue #56 + has 16 source lines regardless of extra data in coverage array + prints a warning to stderr if coverage array contains more data than lines in the file + A file that has inline branches + has covered branches count 2 + has branches coverage percent 50.00 + has dual element in condition at line 3 report + has branches report on 3 lines file with branches - line coverage - has 1 missed line - has 6 covered lines - has line coverage - has 7 relevant lines branch coverage - has line 3 with missed branches branch - has coverage report has 50% branch coverage + has line 3 with missed branches branch has total branches count 6 - has line 7 with missed branches branch has covered branches count 3 has missed branches count 3 - A file that has inline branches - has covered branches count 2 - has branches coverage percent 50.00 - has dual element in condition at line 3 report - has branches report on 3 lines - a file with case without else + has line 7 with missed branches branch + has coverage report line coverage - covers 4/6 - branch coverage - marks the non declared else branch as missing at the point of the case - covers 1/4 (counting the else branch) - covers the branch that includes 42 + has 7 relevant lines + has 1 missed line + has line coverage + has 6 covered lines a file with case - line coverage - covers 4/7 branch coverage covers all the things right covers 1/4 - a file entirely ignored with a single # :nocov: line coverage - has all lines skipped - reports 100% coverage on 0/0 + covers 4/7 + a file with nested branches + line coverage + covers 6/7 branch coverage - has 100% branch coverage on 0/0 - has all branches marked as skipped + covers 3/5 + registered 2 hits for the while branch + a file where everything is skipped and missed #563 + has 0.0 covered_strength + has 0.0 covered_percent + has no covered or missed lines + a file that is never relevant + has 100.0 covered_percent + has 100.0 branch coverage + has 0.0 covered_strength + a file with if/elsif + line coverage + covers 6/9 + branch coverage + covers the branch that includes 42 + covers 3/6 + a file with case without else + line coverage + covers 4/6 + branch coverage + covers 1/4 (counting the else branch) + covers the branch that includes 42 + marks the non declared else branch as missing at the point of the case a file with more complex skipping + branch coverage + has an empty branch report + covers 3/4 branches line coverage - has 6 relevant lines has a whole lot of skipped lines - has 100.0 covered_percent has 6 covered lines + has 100.0 covered_percent has no missed lines + has 6 relevant lines + the branch tester script branch coverage - has an empty branch report - covers 3/4 branches + covers 10/24 + notifies us of the missing else branch on line 27 that's hit + line coverage + covers 18/28 + a source file initialized with some coverage data + has source equal to src + has 'class Foo' as line(2).source + has a project filename which removes the project directory + has 16 source lines + has all source lines of type SimpleCov::SourceFile::Line + has source_lines equal to lines + has a filename + line coverage + returns lines number 2, 3, 4, 7 for covered_lines + returns lines number 8 for missed_lines + has 80% covered_percent + returns line numbers 11, 12, 13, 14, 15 for skipped_lines + returns lines number 1, 5, 6, 9, 10, 16 for never_lines + branch coverage + is considered 100% branches covered + has branch coverage report + has missed branches count 0 + has covered branches count 0 + has total branches count 0 + a file entirely ignored with a single # :nocov: + line coverage + reports 100% coverage on 0/0 + has all lines skipped + branch coverage + has all branches marked as skipped + has 100% branch coverage on 0/0 a file where nothing is ever executed mixed with skipping #563 has 0.0 covered_percent has 0.0 covered_strength - the branch tester script + a file where everything is skipped/irrelevant but executed #563 branch coverage - notifies us of the missing else branch on line 27 that's hit - covers 10/24 + has no branches + has an empty branch report + does has neither covered nor missed branches line coverage - covers 18/28 + has 0.0 covered_percent + has no missed lines + has a whole lot of skipped lines + has 0.0 covered_strength + has no covered lines + has no relevant lines + a file with an uneven usage of # :nocov:s + line coverage + reports 100% coverage on 4/4 + has 12 lines skipped + branch coverage + has 5 branches marked as skipped + has 100% branch coverage on 1/1 -SimpleCov::SourceFile::Line - raises ArgumentError when initialized with invalid line_number - raises ArgumentError when initialized with invalid coverage - raises ArgumentError when initialized with invalid src - A source line without coverage - is not never - is not covered - is missed - status is missed - is not skipped - has coverage of 0 - A source line with coverage - has coverage of 3 - is covered - is not skipped - is not missed - status is covered - is not never - a source line - returns "# the ruby source" as src - has equal line_number, line and number - has line number 5 - returns the same for source as for src - flagged as skipped! - status is skipped - is not never - is skipped - is not missed - is not covered - A source line with no code - is not covered - status is never - is not missed - is not skipped - is never - has nil coverage +A source file which is subsequently deleted + does not cause an error -SimpleCov::Result - has 14 lines of code - has the correct covered percentages - has the correct covered strength - has the correct covered percent - has 11 covered lines - has 5 skipped lines - has the correct least covered file - has 3 missed lines - has 17 never lines +SimpleCov::ResultMerger + .resultset + synchronizes reads + basic workings with 2 resultsets + has stored data in resultset_path JSON file + returns a hash containing keys ['result1' and 'result2'] for resultset + returns proper values for merged_result + with second result way above the merge_timeout + has only one result in SimpleCov::ResultMerger.results + .synchronize_resultset + blocks other processes + is reentrant (i.e. doesn't block its own process) + .store_result + refreshes the resultset + persists to disk + synchronizes writes + resultset handling + returns an empty hash when the resultset cache file is not present + returns an empty hash when the resultset cache file is empty + .merge_and_store + pre 0.18 result format + gets the same content back but under "lines" + merging behavior + both resultsets outdated + completely omits the result from the merge + includes both when we say ignore_timeout: true + 1 resultset is outdated + completely omits the result from the merge + includes it when we say ignore_timeout: true + 2 normal results + has the result stored + correctly merges the 2 results + +SimpleCov::UselessResultsRemover + Result ignore gem file path from result set + still retains the app path return codes inside fixtures/frameworks - when running rspec_bad.rb + when running testunit_bad.rb behaves like bad tests with default configuration has a non-zero exit status prints a message to STDERR when print_error_status is disabled - has a non-zero exit status does not print anything to STDERR (PENDING: Temporarily skipped with xit) - when running rspec_good.rb - behaves like good tests - prints nothing to STDERR (PENDING: Temporarily skipped with xit) - has a zero exit status + has a non-zero exit status when running testunit_good.rb behaves like good tests prints nothing to STDERR (PENDING: Temporarily skipped with xit) has a zero exit status - when running testunit_bad.rb + when running rspec_bad.rb behaves like bad tests - when print_error_status is disabled - does not print anything to STDERR (PENDING: Temporarily skipped with xit) - has a non-zero exit status with default configuration has a non-zero exit status prints a message to STDERR + when print_error_status is disabled + does not print anything to STDERR (PENDING: Temporarily skipped with xit) + has a non-zero exit status + when running rspec_good.rb + behaves like good tests + prints nothing to STDERR (PENDING: Temporarily skipped with xit) + has a zero exit status -SimpleCov::LinesClassifier - #classify - relevant lines - determines code as relevant - determines invalid UTF-8 byte sequences as relevant - not-relevant lines - determines whitespace is not-relevant - comments - determines comments are not-relevant - doesn't mistake interpolation as a comment - :nocov: blocks - determines all lines after a non-closing :nocov: as not-relevant - determines :nocov: blocks are not-relevant - -SimpleCov::Formatter::MultiFormatter - .[] - constructs a formatter with multiple children - -SimpleCov::SourceFile::Branch - #overlaps_with?(range) - overlaps with a range that exactly includes it - overlaps with a range that partially includes its end - doesn't overlap with a range beyond its lines - overlaps with a range that partially includes its beginning - overlaps with a range that pends in its middle - doesn't overlap with a range before its lines - overlaps with a range that fully includes everything - skipping lines - can be skipped - isn't skipped by default - a source branch if..else - correct branch report - a source branch without coverage - is neither covered not missed if skipped - is missed - isn't covered - A source branch with coverage - is neither covered not missed if skipped - is not missed - is covered - -A source file which is subsequently deleted - does not cause an error +SimpleCov::Result + has 5 skipped lines + has the correct covered percentages + has 3 missed lines + has the correct covered strength + has the correct least covered file + has 14 lines of code + has the correct covered percent + has 17 never lines + has 11 covered lines SimpleCov::ExitCodes::MinimumOverallCoverageCheck - coverage slightly violated - is expected to be failing coverage violated is expected to be failing one criterion violated is expected to be failing everything exactly ok is expected not to be failing - -SimpleCov::ExitCodes::MaximumCoverageDropCheck - last coverage lower then new coverage - is expected not to be failing - last coverage higher than new coverage + coverage slightly violated is expected to be failing - but allowed drop is within range - is expected not to be failing - coverage expectation for a coverage that wasn't previously present - is expected not to be failing - one coverage lower than maximum drop + +SimpleCov::ExitCodes::MinimumCoverageByFileCheck + one file violating requirements is expected to be failing - but allowed drop is within range - is expected not to be failing - more coverage drop allowed - is expected not to be failing - old last_run.json format - is expected not to be failing - we're at the same coverage - is expected not to be failing - no last run coverage information + all files passing requirements is expected not to be failing -SimpleCov - profiles - provides a sensible test_frameworks profile - provides a sensible rails profile +SimpleCov::Result + with a (mocked) Coverage.result + .from_hash + can consume multiple commands + with some filters set up + has 80 covered percent + has [80.0, 80.0] covered percentages + has 2 files in a new simple cov result + a simple cov result initialized from that + responds to missed_lines + has accurate covered percent + responds to covered_strength + has 3 filenames + has files equal to source_files + returns an instance of SimpleCov::FileList for source_files and files + has accurate covered percentages + has 3 source files + responds to covered_percent + responds to least_covered_file + responds to covered_lines + responds to total_lines + responds to covered_percentages + has accurate least covered file + dumped with to_hash + is a hash + loaded back with from_hash + has the same command_name + has the same covered_percentages + has the same timestamp + has the same covered_percent + has the same original_result + has 3 source files + with groups set up for all files + has user.rb in 'Models' group + has 3 groups + has sample_controller.rb in 'Controllers' group + and multi formatter being used + returns an array containing formatted string with result.format! + and simple formatter being used + returns a formatted string with result.format! + with groups set up that do not match all files + has 1 item per group + returns all groups as instances of SimpleCov::FileList + has sample.rb in "Ungrouped" group + has 3 groups SimpleCov::Combine::ResultsCombiner merges frozen resultsets with two faked coverage resultsets a merge - has proper results for sample_controller.rb - has proper results for parallel_tests.rb - has proper results for conditionally_loaded_1.rb - has proper results for resultset1.rb has proper results for conditionally_loaded_2.rb - has proper results for sample.rb + has proper results for parallel_tests.rb has proper results for resultset2.rb + has proper results for sample.rb has proper results for three.rb + has proper results for sample_controller.rb + has proper results for conditionally_loaded_1.rb has proper results for user.rb - -SimpleCov::LastRun - defines a last_run_path - writes json to its last_run_path that can be parsed again - reading - an empty result - returns nil - a non empty result - reads json from its last_run_path - but the last_run file does not exist - returns nil + has proper results for resultset1.rb Non-app warnings written to tmp/warnings.txt Pending: (Failures listed here are expected and do not affect your suite's status) - 1) return codes inside fixtures/frameworks when running rspec_bad.rb behaves like bad tests when print_error_status is disabled does not print anything to STDERR + 1) return codes inside fixtures/frameworks when running testunit_bad.rb behaves like bad tests when print_error_status is disabled does not print anything to STDERR # Temporarily skipped with xit # ./spec/return_codes_spec.rb:48 - 2) return codes inside fixtures/frameworks when running rspec_good.rb behaves like good tests prints nothing to STDERR + 2) return codes inside fixtures/frameworks when running testunit_good.rb behaves like good tests prints nothing to STDERR # Temporarily skipped with xit # ./spec/return_codes_spec.rb:25 - 3) return codes inside fixtures/frameworks when running testunit_good.rb behaves like good tests prints nothing to STDERR + 3) return codes inside fixtures/frameworks when running rspec_bad.rb behaves like bad tests when print_error_status is disabled does not print anything to STDERR # Temporarily skipped with xit - # ./spec/return_codes_spec.rb:25 + # ./spec/return_codes_spec.rb:48 - 4) return codes inside fixtures/frameworks when running testunit_bad.rb behaves like bad tests when print_error_status is disabled does not print anything to STDERR + 4) return codes inside fixtures/frameworks when running rspec_good.rb behaves like good tests prints nothing to STDERR # Temporarily skipped with xit - # ./spec/return_codes_spec.rb:48 + # ./spec/return_codes_spec.rb:25 -Finished in 3.4 seconds (files took 0.16115 seconds to load) +Finished in 4.18 seconds (files took 0.25042 seconds to load) 385 examples, 0 failures, 4 pending -Randomized with seed 28079 +Randomized with seed 1397 mv ./.gem2deb.Gemfile.lock Gemfile.lock mv test_projects/monorepo/.gem2deb.Gemfile.lock test_projects/monorepo/Gemfile.lock @@ -1728,140 +1764,256 @@ mv test_projects/rails/rspec_rails/Gemfile.lock test_projects/rails/rspec_rails/.gem2deb.Gemfile.lock /usr/bin/ruby3.3 -I/usr/share/rubygems-integration/all/gems/rspec-support-3.13.1/lib:/usr/share/rubygems-integration/all/gems/rspec-core-3.13.0/lib /usr/share/rubygems-integration/all/gems/rspec-core-3.13.0/exe/rspec --pattern ./spec/\*\*/\*_spec.rb --exclude-pattern ./spec/default_formatter_spec.rb,./spec/gemspec_spec.rb --format documentation -Randomized with seed 30976 +Randomized with seed 28353 SimpleCov::UselessResultsRemover - still retains the app path Result ignore gem file path from result set + still retains the app path -SimpleCov::SourceFile::Line - raises ArgumentError when initialized with invalid line_number - raises ArgumentError when initialized with invalid coverage - raises ArgumentError when initialized with invalid src - A source line without coverage - is not never - is not covered - has coverage of 0 - is not skipped - is missed - status is missed - a source line - returns the same for source as for src - has line number 5 - returns "# the ruby source" as src - has equal line_number, line and number - flagged as skipped! - is not missed - is not covered - status is skipped - is skipped - is not never - A source line with coverage - is not skipped - is not missed - has coverage of 3 - status is covered - is not never - is covered - A source line with no code - has nil coverage - is not covered - status is never - is not skipped - is never - is not missed +SimpleCov::ExitCodes::MinimumCoverageByFileCheck + all files passing requirements + is expected not to be failing + one file violating requirements + is expected to be failing + +SimpleCov::LastRun + defines a last_run_path + writes json to its last_run_path that can be parsed again + reading + an empty result + returns nil + but the last_run file does not exist + returns nil + a non empty result + reads json from its last_run_path + +SimpleCov::ExitCodes::MaximumCoverageDropCheck + no last run coverage information + is expected not to be failing + coverage expectation for a coverage that wasn't previously present + is expected not to be failing + we're at the same coverage + is expected not to be failing + last coverage higher than new coverage + is expected to be failing + but allowed drop is within range + is expected not to be failing + one coverage lower than maximum drop + is expected to be failing + but allowed drop is within range + is expected not to be failing + last coverage lower then new coverage + is expected not to be failing + old last_run.json format + is expected not to be failing + more coverage drop allowed + is expected not to be failing + +SimpleCov::Combine::ResultsCombiner + merges frozen resultsets + with two faked coverage resultsets + a merge + has proper results for three.rb + has proper results for resultset1.rb + has proper results for conditionally_loaded_2.rb + has proper results for parallel_tests.rb + has proper results for resultset2.rb + has proper results for sample_controller.rb + has proper results for conditionally_loaded_1.rb + has proper results for sample.rb + has proper results for user.rb SimpleCov::SourceFile::Branch + A source branch with coverage + is covered + is neither covered not missed if skipped + is not missed a source branch if..else correct branch report - #overlaps_with?(range) - overlaps with a range that pends in its middle - overlaps with a range that exactly includes it - doesn't overlap with a range before its lines - doesn't overlap with a range beyond its lines - overlaps with a range that fully includes everything - overlaps with a range that partially includes its beginning - overlaps with a range that partially includes its end a source branch without coverage - isn't covered is missed is neither covered not missed if skipped + isn't covered skipping lines isn't skipped by default can be skipped - A source branch with coverage - is neither covered not missed if skipped - is not missed - is covered - -SimpleCov::Formatter::MultiFormatter - .[] - constructs a formatter with multiple children + #overlaps_with?(range) + overlaps with a range that partially includes its end + overlaps with a range that fully includes everything + overlaps with a range that pends in its middle + doesn't overlap with a range before its lines + doesn't overlap with a range beyond its lines + overlaps with a range that exactly includes it + overlaps with a range that partially includes its beginning SimpleCov::ExitCodes::MinimumOverallCoverageCheck one criterion violated is expected to be failing everything exactly ok is expected not to be failing - coverage violated - is expected to be failing coverage slightly violated is expected to be failing + coverage violated + is expected to be failing -SimpleCov::ResultMerger - .resultset - synchronizes reads - basic workings with 2 resultsets - has stored data in resultset_path JSON file - returns a hash containing keys ['result1' and 'result2'] for resultset - returns proper values for merged_result - with second result way above the merge_timeout - has only one result in SimpleCov::ResultMerger.results - resultset handling - returns an empty hash when the resultset cache file is not present - returns an empty hash when the resultset cache file is empty - .merge_and_store - merging behavior - 2 normal results - has the result stored - correctly merges the 2 results - 1 resultset is outdated - includes it when we say ignore_timeout: true - completely omits the result from the merge - both resultsets outdated - includes both when we say ignore_timeout: true - completely omits the result from the merge - pre 0.18 result format - gets the same content back but under "lines" - .synchronize_resultset - is reentrant (i.e. doesn't block its own process) - blocks other processes - .store_result - synchronizes writes - refreshes the resultset - persists to disk +SimpleCov::CoverageStatistics + .from + produces sensible total results + returns an all 0s coverage statistics if there are no statistics + returns all empty statistics when initialized with a couple of empty results + .new + can omit the total strength defaulting to 0.0 + can deal with it if everything is 0 + retains statistics and computes new ones -SimpleCov::Combine::ResultsCombiner - merges frozen resultsets - with two faked coverage resultsets - a merge - has proper results for user.rb - has proper results for conditionally_loaded_2.rb - has proper results for sample.rb - has proper results for resultset1.rb - has proper results for sample_controller.rb - has proper results for parallel_tests.rb - has proper results for conditionally_loaded_1.rb - has proper results for resultset2.rb - has proper results for three.rb +SimpleCov::Formatter::MultiFormatter + .[] + constructs a formatter with multiple children + +SimpleCov::SourceFile::Line + raises ArgumentError when initialized with invalid coverage + raises ArgumentError when initialized with invalid line_number + raises ArgumentError when initialized with invalid src + A source line with coverage + is not never + is covered + is not skipped + has coverage of 3 + status is covered + is not missed + A source line with no code + is not missed + is not skipped + is not covered + is never + has nil coverage + status is never + A source line without coverage + is not covered + has coverage of 0 + is not never + status is missed + is missed + is not skipped + a source line + returns "# the ruby source" as src + has equal line_number, line and number + returns the same for source as for src + has line number 5 + flagged as skipped! + is skipped + is not covered + is not missed + is not never + status is skipped + +SimpleCov::CommandGuesser + correctly guesses "Cucumber Features" for cucumber features + correctly guesses "Functional Tests" for functional tests + correctly guesses "RSpec" for RSpec + correctly guesses "Integration Tests" for integration tests + defaults to RSpec because RSpec constant is defined + correctly guesses "Unit Tests" for unit tests + +loading config + without ENV[HOME] + shouldn't raise any errors + +A source file which is subsequently deleted + does not cause an error + +coverage for eval + foo + records coverage for erb + +SimpleCov::Configuration + #tracked_files + #coverage_criteria + defaults to line + when configured + returns the configured glob + and configured again with nil + returns nil + #minimum_coverage_by_file + behaves like setting coverage expectations + sets the right coverage value when called with a number + sets the right coverage when called with a hash of just branch + sets the right coverage when called with a hash of just line + raises when unknown coverage criteria provided + warns you about your usage + sets the right coverage when called with both line and branch + does not warn you about your usage + raises when trying to set branch coverage but not enabled + when primary coverage is set + sets the right coverage value when called with a number + #primary_coverage + can set primary coverage to line + can't set primary coverage to arbitrary things + when branch coverage is enabled + can set primary coverage to branch + when branch coverage is not enabled + cannot set primary coverage to branch + #enable_for_subprocesses + returns false by default + can be set to true + can be enabled and then disabled again + #enable_coverage + can enable branch coverage + can enable line again + can't enable arbitrary things + #refuse_coverage_drop + sets the right coverage value when called with `:branch` + sets the right coverage value when called with `:line` and `:branch` + sets the right coverage value when called with no args + sets the right coverage value when called with `:line` + when unconfigured + returns nil + #branch_coverage? + returns false for line coverage + returns true of branch coverage is being measured + #coverage_criterion + works fine setting it back and forth + works fine with :branch + defaults to line + works fine with line + errors out on unknown coverage + #minimum_coverage + behaves like setting coverage expectations + raises when unknown coverage criteria provided + sets the right coverage when called with a hash of just line + does not warn you about your usage + warns you about your usage + sets the right coverage when called with both line and branch + raises when trying to set branch coverage but not enabled + sets the right coverage value when called with a number + sets the right coverage when called with a hash of just branch + when primary coverage is set + sets the right coverage value when called with a number + #maximum_coverage_drop + behaves like setting coverage expectations + sets the right coverage when called with both line and branch + sets the right coverage value when called with a number + sets the right coverage when called with a hash of just branch + does not warn you about your usage + raises when trying to set branch coverage but not enabled + warns you about your usage + raises when unknown coverage criteria provided + sets the right coverage when called with a hash of just line + when primary coverage is set + sets the right coverage value when called with a number + #print_error_status + when manually set + is expected to equal false + when not manually set + is expected to equal true return codes inside fixtures/frameworks - when running testunit_good.rb + when running rspec_good.rb behaves like good tests - prints nothing to STDERR (PENDING: Temporarily skipped with xit) has a zero exit status - when running rspec_bad.rb + prints nothing to STDERR (PENDING: Temporarily skipped with xit) + when running testunit_bad.rb behaves like bad tests when print_error_status is disabled has a non-zero exit status @@ -1869,505 +2021,389 @@ with default configuration has a non-zero exit status prints a message to STDERR - when running rspec_good.rb - behaves like good tests - prints nothing to STDERR (PENDING: Temporarily skipped with xit) - has a zero exit status - when running testunit_bad.rb + when running rspec_bad.rb behaves like bad tests with default configuration - has a non-zero exit status prints a message to STDERR + has a non-zero exit status when print_error_status is disabled has a non-zero exit status does not print anything to STDERR (PENDING: Temporarily skipped with xit) - -A source file which is subsequently deleted - does not cause an error - -SimpleCov::CoverageStatistics - .new - can omit the total strength defaulting to 0.0 - can deal with it if everything is 0 - retains statistics and computes new ones - .from - returns all empty statistics when initialized with a couple of empty results - produces sensible total results - returns an all 0s coverage statistics if there are no statistics - -loading config - without ENV[HOME] - shouldn't raise any errors + when running testunit_good.rb + behaves like good tests + prints nothing to STDERR (PENDING: Temporarily skipped with xit) + has a zero exit status SimpleCov - profiles - provides a sensible test_frameworks profile - provides a sensible rails profile - -SimpleCov::Result - has 11 covered lines - has 3 missed lines - has 5 skipped lines - has the correct covered strength - has 14 lines of code - has 17 never lines - has the correct covered percent - has the correct least covered file - has the correct covered percentages - -SimpleCov::ExitCodes::MaximumCoverageDropCheck - no last run coverage information - is expected not to be failing - we're at the same coverage - is expected not to be failing - old last_run.json format - is expected not to be failing - more coverage drop allowed - is expected not to be failing - last coverage higher than new coverage - is expected to be failing - but allowed drop is within range - is expected not to be failing - one coverage lower than maximum drop - is expected to be failing - but allowed drop is within range - is expected not to be failing - coverage expectation for a coverage that wasn't previously present - is expected not to be failing - last coverage lower then new coverage - is expected not to be failing + .collate + when no files to be merged + shows an error message + when files to be merged + and multiple reports to be merged, one of them outdated + creates a merged report with only the results from the current resultset if ignore_timeout: false + ignores timeout by default creating a report with all values + and multiple reports to be merged + creates a merged report + and a single report to be merged + creates a merged report identical to the original + .process_result + when minimum coverage is 100% + when actual coverage is exactly 100% + return SimpleCov::ExitCodes::SUCCESS + branch coverage + errors out when the coverage is too low + when actual coverage is almost 100% + return SimpleCov::ExitCodes::MINIMUM_COVERAGE + .result + with merging disabled + when not running + returns nil + when running + doesn't store the current coverage + uses the result from Coverage + adds not-loaded-files + caches its result + doesn't merge the result + with merging enabled + when running + uses the result from Coverage + merges the result + caches its result + adds not-loaded-files + stores the current coverage + when not running + merges the result + .exit_status_from_exception + when a SystemExit has occurred + returns the SystemExit status + when a non SystemExit occurs + return SimpleCov::ExitCodes::EXCEPTION + when no exception has occurred + returns nil + .start_coverage_measurement + starts coverage with lines and branches if branches is activated + starts coverage in lines mode by default SimpleCov::Result with a (mocked) Coverage.result - with some filters set up - has 2 files in a new simple cov result - has [80.0, 80.0] covered percentages - has 80 covered percent - with groups set up that do not match all files - has sample.rb in "Ungrouped" group - returns all groups as instances of SimpleCov::FileList - has 1 item per group - has 3 groups a simple cov result initialized from that - responds to missed_lines - has accurate least covered file - responds to covered_percentages responds to covered_strength - responds to total_lines has accurate covered percent + has files equal to source_files + responds to covered_percentages + responds to missed_lines + responds to covered_percent + responds to total_lines has 3 filenames - returns an instance of SimpleCov::FileList for source_files and files + responds to covered_lines responds to least_covered_file - responds to covered_percent - has files equal to source_files has accurate covered percentages - responds to covered_lines + returns an instance of SimpleCov::FileList for source_files and files has 3 source files + has accurate least covered file dumped with to_hash is a hash loaded back with from_hash - has 3 source files has the same covered_percent - has the same original_result has the same command_name - has the same timestamp + has the same original_result + has 3 source files has the same covered_percentages + has the same timestamp .from_hash can consume multiple commands + with some filters set up + has [80.0, 80.0] covered percentages + has 2 files in a new simple cov result + has 80 covered percent with groups set up for all files - has user.rb in 'Models' group - has 3 groups has sample_controller.rb in 'Controllers' group + has 3 groups + has user.rb in 'Models' group and multi formatter being used returns an array containing formatted string with result.format! and simple formatter being used returns a formatted string with result.format! + with groups set up that do not match all files + has 3 groups + has sample.rb in "Ungrouped" group + has 1 item per group + returns all groups as instances of SimpleCov::FileList -SimpleCov::LinesClassifier - #classify - relevant lines - determines invalid UTF-8 byte sequences as relevant - determines code as relevant - not-relevant lines - determines whitespace is not-relevant - :nocov: blocks - determines :nocov: blocks are not-relevant - determines all lines after a non-closing :nocov: as not-relevant - comments - doesn't mistake interpolation as a comment - determines comments are not-relevant - -SimpleCov::SourceFile - doesn't match a new SimpleCov::RegexFilter /^/fixtures// - matches a new SimpleCov::StringFilter 'spec/fixtures' - doesn't match a new SimpleCov::StringFilter '.pl' - doesn't match a new SimpleCov::ArrayFilter when a file path different than /sample.rb/ is passed as array - doesn't match a new SimpleCov::ArrayFilter when a file path different than 'sample.rb' is passed as array - doesn't match a new SimpleCov::ArrayFilter when a block that returns false is passed as array - matches a new SimpleCov::ArrayFilter when two file paths including 'sample.rb' are passed as array - doesn't match a new SimpleCov::ArrayFilter when a custom class that returns false is passed as array - doesn't match a new SimpleCov::BlockFilter that is not applicable - matches a new SimpleCov::ArrayFilter when /sample.rb/ is passed as array - doesn't match a new SimpleCov::StringFilter 'some/path' - matches a new SimpleCov::StringFilter 'spec/fixtures/sample.rb' - matches a new SimpleCov::BlockFilter that is applicable - matches a new SimpleCov::ArrayFilter when a custom class that returns true is passed as array - doesn't match a parent directory with a new SimpleCov::ArrayFilter - matches a new SimpleCov::RegexFilter /^/spec// - matches a new SimpleCov::StringFilter 'sample.rb' - matches a new SimpleCov::ArrayFilter when 'sample.rb' is passed as array - matches a new SimpleCov::RegexFilter //fixtures// - doesn't match a parent directory with a new SimpleCov::StringFilter - doesn't match a new SimpleCov::StringFilter 'foobar' - matches a new SimpleCov::ArrayFilter when a block is passed as array and returns true - .class_for_argument - returns SimpleCov::RegexFilter for a string - returns SimpleCov::StringFilter for a string - returns SimpleCov::RegexFilter for a string - with no filters set up and a basic source file in an array - returns 1 item after executing SimpleCov.filtered on files when using an always-false block filter - returns 1 item after executing SimpleCov.filtered on files when using a "fooo" string filter - returns a FileList after filtering - returns 0 items after executing SimpleCov.filtered on files when using a "spec/fixtures" string filter - returns 0 items after executing SimpleCov.filtered on files when using a block filter that returns true - returns 0 items after executing SimpleCov.filtered on files when using a "sample" string filter - with the default configuration - outside the project - filters - filters even if the sibling directory has SimpleCov.root as a prefix - inside the project - filters hidden files - filters hidden folders - doesn't filter - filters vendor/bundle - doesn't filter hidden files further down the path - -SimpleCov::CommandGuesser - correctly guesses "Unit Tests" for unit tests - defaults to RSpec because RSpec constant is defined - correctly guesses "Cucumber Features" for cucumber features - correctly guesses "Functional Tests" for functional tests - correctly guesses "Integration Tests" for integration tests - correctly guesses "RSpec" for RSpec +SimpleCov::Result + has 14 lines of code + has 11 covered lines + has the correct least covered file + has 3 missed lines + has 5 skipped lines + has the correct covered percentages + has 17 never lines + has the correct covered percent + has the correct covered strength -SimpleCov::ExitCodes::MinimumCoverageByFileCheck - all files passing requirements - is expected not to be failing - one file violating requirements - is expected to be failing +SimpleCov::ResultMerger + basic workings with 2 resultsets + returns proper values for merged_result + returns a hash containing keys ['result1' and 'result2'] for resultset + has stored data in resultset_path JSON file + with second result way above the merge_timeout + has only one result in SimpleCov::ResultMerger.results + .synchronize_resultset + blocks other processes + is reentrant (i.e. doesn't block its own process) + resultset handling + returns an empty hash when the resultset cache file is empty + returns an empty hash when the resultset cache file is not present + .resultset + synchronizes reads + .merge_and_store + pre 0.18 result format + gets the same content back but under "lines" + merging behavior + 2 normal results + correctly merges the 2 results + has the result stored + both resultsets outdated + includes both when we say ignore_timeout: true + completely omits the result from the merge + 1 resultset is outdated + completely omits the result from the merge + includes it when we say ignore_timeout: true + .store_result + synchronizes writes + refreshes the resultset + persists to disk SimpleCov::SourceFile file with branches + branch coverage + has missed branches count 3 + has coverage report + has line 7 with missed branches branch + has line 3 with missed branches branch + has 50% branch coverage + has total branches count 6 + has covered branches count 3 line coverage + has 1 missed line has 7 relevant lines has line coverage - has 1 missed line has 6 covered lines + a file with more complex skipping branch coverage - has covered branches count 3 - has line 7 with missed branches branch - has total branches count 6 - has coverage report - has 50% branch coverage - has missed branches count 3 - has line 3 with missed branches branch - a file that is never relevant - has 100.0 covered_percent - has 100.0 branch coverage - has 0.0 covered_strength - a file with case + has an empty branch report + covers 3/4 branches line coverage - covers 4/7 + has 6 relevant lines + has no missed lines + has 6 covered lines + has 100.0 covered_percent + has a whole lot of skipped lines + simulating potential Ruby 1.9 defect -- see Issue #56 + prints a warning to stderr if coverage array contains more data than lines in the file + has 16 source lines regardless of extra data in coverage array + a file where everything is skipped/irrelevant but executed #563 + line coverage + has a whole lot of skipped lines + has no relevant lines + has 0.0 covered_percent + has 0.0 covered_strength + has no missed lines + has no covered lines branch coverage - covers all the things right - covers 1/4 + has no branches + has an empty branch report + does has neither covered nor missed branches a file where everything is skipped and missed #563 - has 0.0 covered_strength - has 0.0 covered_percent has no covered or missed lines - a file where nothing is ever executed mixed with skipping #563 has 0.0 covered_percent has 0.0 covered_strength + A file that has inline branches + has dual element in condition at line 3 report + has covered branches count 2 + has branches report on 3 lines + has branches coverage percent 50.00 a source file initialized with some coverage data has a filename - has all source lines of type SimpleCov::SourceFile::Line - has source_lines equal to lines has 'class Foo' as line(2).source - has a project filename which removes the project directory has 16 source lines + has all source lines of type SimpleCov::SourceFile::Line + has source_lines equal to lines has source equal to src + has a project filename which removes the project directory line coverage - returns lines number 2, 3, 4, 7 for covered_lines - returns lines number 1, 5, 6, 9, 10, 16 for never_lines - has 80% covered_percent - returns lines number 8 for missed_lines returns line numbers 11, 12, 13, 14, 15 for skipped_lines + returns lines number 8 for missed_lines + has 80% covered_percent + returns lines number 1, 5, 6, 9, 10, 16 for never_lines + returns lines number 2, 3, 4, 7 for covered_lines branch coverage - has missed branches count 0 has covered branches count 0 - has branch coverage report + has missed branches count 0 is considered 100% branches covered has total branches count 0 + has branch coverage report + a file with if/elsif + line coverage + covers 6/9 + branch coverage + covers the branch that includes 42 + covers 3/6 + a file that is never relevant + has 100.0 covered_percent + has 0.0 covered_strength + has 100.0 branch coverage a file with case without else branch coverage + marks the non declared else branch as missing at the point of the case covers 1/4 (counting the else branch) covers the branch that includes 42 - marks the non declared else branch as missing at the point of the case line coverage covers 4/6 - a file with more complex skipping - branch coverage - covers 3/4 branches - has an empty branch report - line coverage - has 6 relevant lines - has 6 covered lines - has 100.0 covered_percent - has no missed lines - has a whole lot of skipped lines a file with nested branches + line coverage + covers 6/7 branch coverage registered 2 hits for the while branch covers 3/5 + a file with an uneven usage of # :nocov:s line coverage - covers 6/7 - a file where everything is skipped/irrelevant but executed #563 + reports 100% coverage on 4/4 + has 12 lines skipped branch coverage - has no branches - has an empty branch report - does has neither covered nor missed branches + has 100% branch coverage on 1/1 + has 5 branches marked as skipped + the branch tester script line coverage - has a whole lot of skipped lines - has 0.0 covered_strength - has no relevant lines - has no covered lines - has no missed lines - has 0.0 covered_percent - A file that has inline branches - has dual element in condition at line 3 report - has branches coverage percent 50.00 - has covered branches count 2 - has branches report on 3 lines + covers 18/28 + branch coverage + notifies us of the missing else branch on line 27 that's hit + covers 10/24 a file contains non-ASCII characters - UTF-8 without magic comment - has the line with 135°C + EUC-JP with magic comment and shebang + has all the right lines behaves like converting to UTF-8 has all source lines of encoding UTF-8 - UTF-8 with magic comment + UTF-8 without magic comment has the line with 135°C behaves like converting to UTF-8 has all source lines of encoding UTF-8 empty euc-jp file has empty lines - EUC-JP with magic comment + UTF-8 with magic comment has the line with 135°C behaves like converting to UTF-8 has all source lines of encoding UTF-8 - EUC-JP with magic comment and shebang - has all the right lines + EUC-JP with magic comment + has the line with 135°C behaves like converting to UTF-8 has all source lines of encoding UTF-8 + a file where nothing is ever executed mixed with skipping #563 + has 0.0 covered_percent + has 0.0 covered_strength + a file with case + branch coverage + covers 1/4 + covers all the things right + line coverage + covers 4/7 a file entirely ignored with a single # :nocov: line coverage - reports 100% coverage on 0/0 has all lines skipped + reports 100% coverage on 0/0 branch coverage has 100% branch coverage on 0/0 has all branches marked as skipped - simulating potential Ruby 1.9 defect -- see Issue #56 - has 16 source lines regardless of extra data in coverage array - prints a warning to stderr if coverage array contains more data than lines in the file - a file with if/elsif - branch coverage - covers the branch that includes 42 - covers 3/6 - line coverage - covers 6/9 - the branch tester script - branch coverage - notifies us of the missing else branch on line 27 that's hit - covers 10/24 - line coverage - covers 18/28 - a file with an uneven usage of # :nocov:s - line coverage - has 12 lines skipped - reports 100% coverage on 4/4 - branch coverage - has 100% branch coverage on 1/1 - has 5 branches marked as skipped -SimpleCov::Configuration - #print_error_status - when not manually set - is expected to equal true - when manually set - is expected to equal false - #tracked_files - when configured - returns the configured glob - and configured again with nil - returns nil - #refuse_coverage_drop - sets the right coverage value when called with `:line` - sets the right coverage value when called with no args - sets the right coverage value when called with `:line` and `:branch` - sets the right coverage value when called with `:branch` - #enable_for_subprocesses - can be set to true - can be enabled and then disabled again - returns false by default - #minimum_coverage_by_file - behaves like setting coverage expectations - sets the right coverage when called with a hash of just branch - does not warn you about your usage - warns you about your usage - raises when trying to set branch coverage but not enabled - sets the right coverage when called with both line and branch - sets the right coverage when called with a hash of just line - sets the right coverage value when called with a number - raises when unknown coverage criteria provided - when primary coverage is set - sets the right coverage value when called with a number - #coverage_criterion - errors out on unknown coverage - works fine with :branch - works fine with line - works fine setting it back and forth - defaults to line - #minimum_coverage - behaves like setting coverage expectations - sets the right coverage when called with both line and branch - raises when trying to set branch coverage but not enabled - warns you about your usage - sets the right coverage when called with a hash of just branch - sets the right coverage value when called with a number - raises when unknown coverage criteria provided - does not warn you about your usage - sets the right coverage when called with a hash of just line - when primary coverage is set - sets the right coverage value when called with a number - #primary_coverage - can't set primary coverage to arbitrary things - can set primary coverage to line - when branch coverage is not enabled - cannot set primary coverage to branch - when branch coverage is enabled - can set primary coverage to branch - #enable_coverage - can enable branch coverage - can't enable arbitrary things - can enable line again - when unconfigured - returns nil - #coverage_criteria - defaults to line - #branch_coverage? - returns true of branch coverage is being measured - returns false for line coverage - #maximum_coverage_drop - behaves like setting coverage expectations - raises when trying to set branch coverage but not enabled - sets the right coverage when called with a hash of just line - warns you about your usage - sets the right coverage when called with both line and branch - sets the right coverage when called with a hash of just branch - does not warn you about your usage - sets the right coverage value when called with a number - raises when unknown coverage criteria provided - when primary coverage is set - sets the right coverage value when called with a number - -SimpleCov - .collate - when files to be merged - and multiple reports to be merged, one of them outdated - creates a merged report with only the results from the current resultset if ignore_timeout: false - ignores timeout by default creating a report with all values - and a single report to be merged - creates a merged report identical to the original - and multiple reports to be merged - creates a merged report - when no files to be merged - shows an error message - .exit_status_from_exception - when no exception has occurred - returns nil - when a non SystemExit occurs - return SimpleCov::ExitCodes::EXCEPTION - when a SystemExit has occurred - returns the SystemExit status - .result - with merging enabled - when running - merges the result - stores the current coverage - adds not-loaded-files - uses the result from Coverage - caches its result - when not running - merges the result - with merging disabled - when not running - returns nil - when running - caches its result - doesn't merge the result - doesn't store the current coverage - uses the result from Coverage - adds not-loaded-files - .process_result - when minimum coverage is 100% - when actual coverage is exactly 100% - return SimpleCov::ExitCodes::SUCCESS - branch coverage - errors out when the coverage is too low - when actual coverage is almost 100% - return SimpleCov::ExitCodes::MINIMUM_COVERAGE - .start_coverage_measurement - starts coverage with lines and branches if branches is activated - starts coverage in lines mode by default +SimpleCov::LinesClassifier + #classify + relevant lines + determines code as relevant + determines invalid UTF-8 byte sequences as relevant + not-relevant lines + determines whitespace is not-relevant + :nocov: blocks + determines :nocov: blocks are not-relevant + determines all lines after a non-closing :nocov: as not-relevant + comments + doesn't mistake interpolation as a comment + determines comments are not-relevant -SimpleCov::LastRun - defines a last_run_path - writes json to its last_run_path that can be parsed again - reading - a non empty result - reads json from its last_run_path - but the last_run file does not exist - returns nil - an empty result - returns nil +SimpleCov::SourceFile + doesn't match a parent directory with a new SimpleCov::StringFilter + matches a new SimpleCov::StringFilter 'sample.rb' + doesn't match a new SimpleCov::BlockFilter that is not applicable + doesn't match a new SimpleCov::StringFilter 'some/path' + matches a new SimpleCov::RegexFilter /^/spec// + matches a new SimpleCov::ArrayFilter when a block is passed as array and returns true + doesn't match a new SimpleCov::ArrayFilter when a file path different than /sample.rb/ is passed as array + doesn't match a new SimpleCov::ArrayFilter when a file path different than 'sample.rb' is passed as array + doesn't match a new SimpleCov::RegexFilter /^/fixtures// + matches a new SimpleCov::StringFilter 'spec/fixtures' + matches a new SimpleCov::StringFilter 'spec/fixtures/sample.rb' + doesn't match a new SimpleCov::ArrayFilter when a custom class that returns false is passed as array + matches a new SimpleCov::ArrayFilter when 'sample.rb' is passed as array + doesn't match a new SimpleCov::ArrayFilter when a block that returns false is passed as array + doesn't match a parent directory with a new SimpleCov::ArrayFilter + matches a new SimpleCov::ArrayFilter when two file paths including 'sample.rb' are passed as array + matches a new SimpleCov::BlockFilter that is applicable + matches a new SimpleCov::ArrayFilter when /sample.rb/ is passed as array + matches a new SimpleCov::ArrayFilter when a custom class that returns true is passed as array + doesn't match a new SimpleCov::StringFilter 'foobar' + doesn't match a new SimpleCov::StringFilter '.pl' + matches a new SimpleCov::RegexFilter //fixtures// + .class_for_argument + returns SimpleCov::RegexFilter for a string + returns SimpleCov::RegexFilter for a string + returns SimpleCov::StringFilter for a string + with no filters set up and a basic source file in an array + returns 1 item after executing SimpleCov.filtered on files when using a "fooo" string filter + returns 0 items after executing SimpleCov.filtered on files when using a block filter that returns true + returns 1 item after executing SimpleCov.filtered on files when using an always-false block filter + returns 0 items after executing SimpleCov.filtered on files when using a "sample" string filter + returns a FileList after filtering + returns 0 items after executing SimpleCov.filtered on files when using a "spec/fixtures" string filter + with the default configuration + inside the project + filters vendor/bundle + doesn't filter hidden files further down the path + doesn't filter + filters hidden files + filters hidden folders + outside the project + filters + filters even if the sibling directory has SimpleCov.root as a prefix -coverage for eval - foo - records coverage for erb +SimpleCov + profiles + provides a sensible test_frameworks profile + provides a sensible rails profile Non-app warnings written to tmp/warnings.txt Pending: (Failures listed here are expected and do not affect your suite's status) - 1) return codes inside fixtures/frameworks when running testunit_good.rb behaves like good tests prints nothing to STDERR + 1) return codes inside fixtures/frameworks when running rspec_good.rb behaves like good tests prints nothing to STDERR # Temporarily skipped with xit # ./spec/return_codes_spec.rb:25 - 2) return codes inside fixtures/frameworks when running rspec_bad.rb behaves like bad tests when print_error_status is disabled does not print anything to STDERR + 2) return codes inside fixtures/frameworks when running testunit_bad.rb behaves like bad tests when print_error_status is disabled does not print anything to STDERR # Temporarily skipped with xit # ./spec/return_codes_spec.rb:48 - 3) return codes inside fixtures/frameworks when running rspec_good.rb behaves like good tests prints nothing to STDERR + 3) return codes inside fixtures/frameworks when running rspec_bad.rb behaves like bad tests when print_error_status is disabled does not print anything to STDERR # Temporarily skipped with xit - # ./spec/return_codes_spec.rb:25 + # ./spec/return_codes_spec.rb:48 - 4) return codes inside fixtures/frameworks when running testunit_bad.rb behaves like bad tests when print_error_status is disabled does not print anything to STDERR + 4) return codes inside fixtures/frameworks when running testunit_good.rb behaves like good tests prints nothing to STDERR # Temporarily skipped with xit - # ./spec/return_codes_spec.rb:48 + # ./spec/return_codes_spec.rb:25 -Finished in 4.52 seconds (files took 0.18433 seconds to load) +Finished in 4.54 seconds (files took 0.2621 seconds to load) 386 examples, 0 failures, 4 pending -Randomized with seed 30976 +Randomized with seed 28353 mv ./.gem2deb.Gemfile.lock Gemfile.lock mv test_projects/monorepo/.gem2deb.Gemfile.lock test_projects/monorepo/Gemfile.lock @@ -2405,12 +2441,14 @@ dpkg-buildpackage: info: binary-only upload (no source included) dpkg-genchanges: info: not including original source code in upload I: copying local configuration +I: user script /srv/workspace/pbuilder/1623782/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/1623782/tmp/hooks/B01_cleanup finished I: unmounting dev/ptmx filesystem I: unmounting dev/pts filesystem I: unmounting dev/shm filesystem I: unmounting proc filesystem I: unmounting sys filesystem I: cleaning the build env -I: removing directory /srv/workspace/pbuilder/2252366 and its subdirectories -I: Current time: Sat Jan 25 22:50:20 -12 2025 -I: pbuilder-time-stamp: 1737888620 +I: removing directory /srv/workspace/pbuilder/1623782 and its subdirectories +I: Current time: Sun Mar 1 07:15:57 +14 2026 +I: pbuilder-time-stamp: 1772298957