Skip to content

tests failures #29

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Apteryks opened this issue Mar 8, 2023 · 0 comments
Open

tests failures #29

Apteryks opened this issue Mar 8, 2023 · 0 comments

Comments

@Apteryks
Copy link

Apteryks commented Mar 8, 2023

Hello,

When I run the test suite with rake spec, it fails like:

Bundler will use `/tmp/guix-build-ruby-simplecov-lcov-0.8.0.drv-0/bundler20230308-35-m3h6us35' as your home directory temporarily.
Resolving dependencies...
/gnu/store/j4z07lyi1ykk8bc68h1p4bpj1il9dn3f-ruby-2.7.4/bin/ruby -I/gnu/store/l3nss8vrb6laiqb1ayn9bri2vn4xnzj1-ruby-rspec-core-3.12.1/lib/ruby/vendor_ruby/gems/rspec-core-3.12.1/lib:/gnu/store/900s3ljm1d44zam9hsbxf7ckr49zrriv-ruby-rspec-support-3.12.0/lib/ruby/vendor_ruby/gems/rspec-support-3.12.0/lib /gnu/store/l3nss8vrb6laiqb1ayn9bri2vn4xnzj1-ruby-rspec-core-3.12.1/lib/ruby/vendor_ruby/gems/rspec-core-3.12.1/exe/rspec spec/configuration_spec.rb spec/simplecov-lcov_spec.rb
.....F.F.FFFFFFFFF..

Failures:

  1) SimpleCovLcov::Configuration#single_report_path when no path customisations where made returns default path
     Failure/Error: expect(configuration.single_report_path).to eq default_path

       expected: "/tmp/guix-build-ruby-simplecov-lcov-0.8.0.drv-0/gem/coverage/lcov/simplecov-lcov.lcov"
            got: "/tmp/guix-build-ruby-simplecov-lcov-0.8.0.drv-0/gem/coverage/lcov/gem.lcov"

       (compared using ==)
     # ./spec/configuration_spec.rb:57:in `block (4 levels) in <top (required)>'

  2) SimpleCovLcov::Configuration#single_report_path when output directory is customised returns path with custom file name
     Failure/Error: expect(configuration.single_report_path).to eq customized_path

       expected: "path/to/my/custom/dir/simplecov-lcov.lcov"
            got: "path/to/my/custom/dir/gem.lcov"

       (compared using ==)
     # ./spec/configuration_spec.rb:83:in `block (4 levels) in <top (required)>'

  3) SimpleCov::Formatter::LcovFormatter#format generating report per file File 
     Failure/Error: result.files.each { |file| write_lcov!(file) }

     NoMethodError:
       undefined method `files' for nil:NilClass
     # ./lib/simplecov-lcov.rb:20:in `format'
     # ./spec/simplecov-lcov_spec.rb:23:in `block (4 levels) in <module:Formatter>'

  4) SimpleCov::Formatter::LcovFormatter#format generating report per file File 
     Failure/Error: result.files.each { |file| write_lcov!(file) }

     NoMethodError:
       undefined method `files' for nil:NilClass
     # ./lib/simplecov-lcov.rb:20:in `format'
     # ./spec/simplecov-lcov_spec.rb:23:in `block (4 levels) in <module:Formatter>'

  5) SimpleCov::Formatter::LcovFormatter#format generating report per file spec-fixtures-hoge.rb.lcov 
     Failure/Error: result.files.each { |file| write_lcov!(file) }

     NoMethodError:
       undefined method `files' for nil:NilClass
     # ./lib/simplecov-lcov.rb:20:in `format'
     # ./spec/simplecov-lcov_spec.rb:23:in `block (4 levels) in <module:Formatter>'

  6) SimpleCov::Formatter::LcovFormatter#format generating report per file spec-fixtures-app-models-user.rb.lcov 
     Failure/Error: result.files.each { |file| write_lcov!(file) }

     NoMethodError:
       undefined method `files' for nil:NilClass
     # ./lib/simplecov-lcov.rb:20:in `format'
     # ./spec/simplecov-lcov_spec.rb:23:in `block (4 levels) in <module:Formatter>'

  7) SimpleCov::Formatter::LcovFormatter#format generating report per file branch coverage enabled spec-fixtures-hoge.rb.branch.lcov 
     Failure/Error: result.files.each { |file| write_lcov!(file) }

     NoMethodError:
       undefined method `files' for nil:NilClass
     # ./lib/simplecov-lcov.rb:20:in `format'
     # ./spec/simplecov-lcov_spec.rb:23:in `block (4 levels) in <module:Formatter>'

  8) SimpleCov::Formatter::LcovFormatter#format generating report per file branch coverage enabled spec-fixtures-app-models-user.rb.branch.lcov 
     Failure/Error: result.files.each { |file| write_lcov!(file) }

     NoMethodError:
       undefined method `files' for nil:NilClass
     # ./lib/simplecov-lcov.rb:20:in `format'
     # ./spec/simplecov-lcov_spec.rb:23:in `block (4 levels) in <module:Formatter>'

  9) SimpleCov::Formatter::LcovFormatter#format generating single file report File 
     Failure/Error: write_lcov_to_single_file!(result.files)

     NoMethodError:
       undefined method `files' for nil:NilClass
     # ./lib/simplecov-lcov.rb:18:in `format'
     # ./spec/simplecov-lcov_spec.rb:81:in `block (4 levels) in <module:Formatter>'

  10) SimpleCov::Formatter::LcovFormatter#format generating single file report single_report_path 
      Failure/Error: write_lcov_to_single_file!(result.files)

      NoMethodError:
        undefined method `files' for nil:NilClass
      # ./lib/simplecov-lcov.rb:18:in `format'
      # ./spec/simplecov-lcov_spec.rb:81:in `block (4 levels) in <module:Formatter>'

  11) SimpleCov::Formatter::LcovFormatter#format generating single file report single_report_path 
      Failure/Error: write_lcov_to_single_file!(result.files)

      NoMethodError:
        undefined method `files' for nil:NilClass
      # ./lib/simplecov-lcov.rb:18:in `format'
      # ./spec/simplecov-lcov_spec.rb:81:in `block (4 levels) in <module:Formatter>'

Finished in 0.01636 seconds (files took 0.12679 seconds to load)
20 examples, 11 failures

Failed examples:

rspec ./spec/configuration_spec.rb:55 # SimpleCovLcov::Configuration#single_report_path when no path customisations where made returns default path
rspec ./spec/configuration_spec.rb:81 # SimpleCovLcov::Configuration#single_report_path when output directory is customised returns path with custom file name
rspec ./spec/simplecov-lcov_spec.rb:27 # SimpleCov::Formatter::LcovFormatter#format generating report per file File 
rspec ./spec/simplecov-lcov_spec.rb:28 # SimpleCov::Formatter::LcovFormatter#format generating report per file File 
rspec ./spec/simplecov-lcov_spec.rb:38 # SimpleCov::Formatter::LcovFormatter#format generating report per file spec-fixtures-hoge.rb.lcov 
rspec ./spec/simplecov-lcov_spec.rb:48 # SimpleCov::Formatter::LcovFormatter#format generating report per file spec-fixtures-app-models-user.rb.lcov 
rspec ./spec/simplecov-lcov_spec.rb:62 # SimpleCov::Formatter::LcovFormatter#format generating report per file branch coverage enabled spec-fixtures-hoge.rb.branch.lcov 
rspec ./spec/simplecov-lcov_spec.rb:72 # SimpleCov::Formatter::LcovFormatter#format generating report per file branch coverage enabled spec-fixtures-app-models-user.rb.branch.lcov 
rspec ./spec/simplecov-lcov_spec.rb:85 # SimpleCov::Formatter::LcovFormatter#format generating single file report File 
rspec ./spec/simplecov-lcov_spec.rb:98 # SimpleCov::Formatter::LcovFormatter#format generating single file report single_report_path 
rspec ./spec/simplecov-lcov_spec.rb:99 # SimpleCov::Formatter::LcovFormatter#format generating single file report single_report_path 

This is when using simplecov 0.22.0. If I use simplecov 0.18.0 instead, I still get:

Bundler will use `/tmp/guix-build-ruby-simplecov-lcov-0.8.0.drv-0/bundler20230308-32-ex05ed32' as your home directory temporarily.
Resolving dependencies...
/gnu/store/j4z07lyi1ykk8bc68h1p4bpj1il9dn3f-ruby-2.7.4/bin/ruby -I/gnu/store/l3nss8vrb6laiqb1ayn9bri2vn4xnzj1-ruby-rspec-core-3.12.1/lib/ruby/vendor_ruby/gems/rspec-core-3.12.1/lib:/gnu/store/900s3ljm1d44zam9hsbxf7ckr49zrriv-ruby-rspec-support-3.12.0/lib/ruby/vendor_ruby/gems/rspec-support-3.12.0/lib /gnu/store/l3nss8vrb6laiqb1ayn9bri2vn4xnzj1-ruby-rspec-core-3.12.1/lib/ruby/vendor_ruby/gems/rspec-core-3.12.1/exe/rspec spec/configuration_spec.rb spec/simplecov-lcov_spec.rb
.....F.F.Lcov style coverage report generated for  to /tmp/guix-build-ruby-simplecov-lcov-0.8.0.drv-0/gem/coverage/lcov
FLcov style coverage report generated for  to /tmp/guix-build-ruby-simplecov-lcov-0.8.0.drv-0/gem/coverage/lcov
FLcov style coverage report generated for  to /tmp/guix-build-ruby-simplecov-lcov-0.8.0.drv-0/gem/coverage/lcov
FLcov style coverage report generated for  to /tmp/guix-build-ruby-simplecov-lcov-0.8.0.drv-0/gem/coverage/lcov
FLcov style coverage report generated for  to /tmp/guix-build-ruby-simplecov-lcov-0.8.0.drv-0/gem/coverage/lcov
FLcov style coverage report generated for  to /tmp/guix-build-ruby-simplecov-lcov-0.8.0.drv-0/gem/coverage/lcov
FLcov style coverage report generated for  to /tmp/guix-build-ruby-simplecov-lcov-0.8.0.drv-0/gem/coverage/lcov/gem.lcov
.Lcov style coverage report generated for  to /tmp/guix-build-ruby-simplecov-lcov-0.8.0.drv-0/gem/coverage/lcov/gem.lcov
FLcov style coverage report generated for  to /tmp/guix-build-ruby-simplecov-lcov-0.8.0.drv-0/gem/coverage/lcov/gem.lcov
F..

Failures:

  1) SimpleCovLcov::Configuration#single_report_path when no path customisations where made returns default path
     Failure/Error: expect(configuration.single_report_path).to eq default_path

       expected: "/tmp/guix-build-ruby-simplecov-lcov-0.8.0.drv-0/gem/coverage/lcov/simplecov-lcov.lcov"
            got: "/tmp/guix-build-ruby-simplecov-lcov-0.8.0.drv-0/gem/coverage/lcov/gem.lcov"

       (compared using ==)
     # ./spec/configuration_spec.rb:57:in `block (4 levels) in <top (required)>'

  2) SimpleCovLcov::Configuration#single_report_path when output directory is customised returns path with custom file name
     Failure/Error: expect(configuration.single_report_path).to eq customized_path

       expected: "path/to/my/custom/dir/simplecov-lcov.lcov"
            got: "path/to/my/custom/dir/gem.lcov"

       (compared using ==)
     # ./spec/configuration_spec.rb:83:in `block (4 levels) in <top (required)>'

  3) SimpleCov::Formatter::LcovFormatter#format generating report per file File is expected to exist "/tmp/guix-build-ruby-simplecov-lcov-0.8.0.drv-0/gem/coverage/lcov/spec-fixtures-hoge.rb.lcov"
     Failure/Error: it { expect(File).to exist(File.join(LcovFormatter.config.output_directory, 'spec-fixtures-hoge.rb.lcov')) }
       expected File to exist
     # ./spec/simplecov-lcov_spec.rb:27:in `block (5 levels) in <module:Formatter>'

  4) SimpleCov::Formatter::LcovFormatter#format generating report per file File is expected to exist "/tmp/guix-build-ruby-simplecov-lcov-0.8.0.drv-0/gem/coverage/lcov/spec-fixtures-app-models-user.rb.lcov"
     Failure/Error: it { expect(File).to exist(File.join(LcovFormatter.config.output_directory, 'spec-fixtures-app-models-user.rb.lcov')) }
       expected File to exist
     # ./spec/simplecov-lcov_spec.rb:28:in `block (5 levels) in <module:Formatter>'

  5) SimpleCov::Formatter::LcovFormatter#format generating report per file spec-fixtures-hoge.rb.lcov 
     Failure/Error: it { expect(File.read(output_path)).to eq(fixture) }

     Errno::ENOENT:
       No such file or directory @ rb_sysopen - /tmp/guix-build-ruby-simplecov-lcov-0.8.0.drv-0/gem/coverage/lcov/spec-fixtures-hoge.rb.lcov
     # ./spec/simplecov-lcov_spec.rb:38:in `read'
     # ./spec/simplecov-lcov_spec.rb:38:in `block (5 levels) in <module:Formatter>'

  6) SimpleCov::Formatter::LcovFormatter#format generating report per file spec-fixtures-app-models-user.rb.lcov 
     Failure/Error: it { expect(File.read(output_path)).to eq(fixture) }

     Errno::ENOENT:
       No such file or directory @ rb_sysopen - /tmp/guix-build-ruby-simplecov-lcov-0.8.0.drv-0/gem/coverage/lcov/spec-fixtures-app-models-user.rb.lcov
     # ./spec/simplecov-lcov_spec.rb:48:in `read'
     # ./spec/simplecov-lcov_spec.rb:48:in `block (5 levels) in <module:Formatter>'

  7) SimpleCov::Formatter::LcovFormatter#format generating report per file branch coverage enabled spec-fixtures-hoge.rb.branch.lcov 
     Failure/Error: it { expect(File.read(output_path)).to eq(fixture) }

     Errno::ENOENT:
       No such file or directory @ rb_sysopen - /tmp/guix-build-ruby-simplecov-lcov-0.8.0.drv-0/gem/coverage/lcov/spec-fixtures-hoge.rb.lcov
     # ./spec/simplecov-lcov_spec.rb:62:in `read'
     # ./spec/simplecov-lcov_spec.rb:62:in `block (6 levels) in <module:Formatter>'

  8) SimpleCov::Formatter::LcovFormatter#format generating report per file branch coverage enabled spec-fixtures-app-models-user.rb.branch.lcov 
     Failure/Error: it { expect(File.read(output_path)).to eq(fixture) }

     Errno::ENOENT:
       No such file or directory @ rb_sysopen - /tmp/guix-build-ruby-simplecov-lcov-0.8.0.drv-0/gem/coverage/lcov/spec-fixtures-app-models-user.rb.lcov
     # ./spec/simplecov-lcov_spec.rb:72:in `read'
     # ./spec/simplecov-lcov_spec.rb:72:in `block (6 levels) in <module:Formatter>'

  9) SimpleCov::Formatter::LcovFormatter#format generating single file report single_report_path is expected to match "SF:./spec/fixtures/hoge.rb\nDA:4,1\nDA:5,1\nDA:6,2\nDA:9,1\nDA:10,1\nDA:11,1\nDA:14,1\nDA:15,0\nDA:19,1\nDA:20,1\nend_of_record\n"
     Failure/Error: it { expect(File.read(output_path)).to match(fixture_of_hoge) }

       expected "" to match "SF:./spec/fixtures/hoge.rb\nDA:4,1\nDA:5,1\nDA:6,2\nDA:9,1\nDA:10,1\nDA:11,1\nDA:14,1\nDA:15,0\nDA:19,1\nDA:20,1\nend_of_record\n"
       Diff:
       @@ -1,13 +1 @@
       -SF:./spec/fixtures/hoge.rb
       -DA:4,1
       -DA:5,1
       -DA:6,2
       -DA:9,1
       -DA:10,1
       -DA:11,1
       -DA:14,1
       -DA:15,0
       -DA:19,1
       -DA:20,1
       -end_of_record
     # ./spec/simplecov-lcov_spec.rb:98:in `block (5 levels) in <module:Formatter>'

  10) SimpleCov::Formatter::LcovFormatter#format generating single file report single_report_path is expected to match "SF:./spec/fixtures/app/models/user.rb\nDA:4,1\nDA:5,1\nDA:6,2\nDA:9,1\nDA:10,1\nDA:13,1\nDA:14,1\nDA:17,1\nDA:18,0\nDA:22,1\nDA:23,1\nDA:24,1\nDA:25,1\nend_of_record\n"
      Failure/Error: it { expect(File.read(output_path)).to match(fixture_of_user) }

        expected "" to match "SF:./spec/fixtures/app/models/user.rb\nDA:4,1\nDA:5,1\nDA:6,2\nDA:9,1\nDA:10,1\nDA:13,1\nDA:14,1\nDA:17,1\nDA:18,0\nDA:22,1\nDA:23,1\nDA:24,1\nDA:25,1\nend_of_record\n"
        Diff:
        @@ -1,16 +1 @@
        -SF:./spec/fixtures/app/models/user.rb
        -DA:4,1
        -DA:5,1
        -DA:6,2
        -DA:9,1
        -DA:10,1
        -DA:13,1
        -DA:14,1
        -DA:17,1
        -DA:18,0
        -DA:22,1
        -DA:23,1
        -DA:24,1
        -DA:25,1
        -end_of_record
      # ./spec/simplecov-lcov_spec.rb:99:in `block (5 levels) in <module:Formatter>'

Finished in 0.01709 seconds (files took 0.1219 seconds to load)
20 examples, 10 failures

Failed examples:

rspec ./spec/configuration_spec.rb:55 # SimpleCovLcov::Configuration#single_report_path when no path customisations where made returns default path
rspec ./spec/configuration_spec.rb:81 # SimpleCovLcov::Configuration#single_report_path when output directory is customised returns path with custom file name
rspec ./spec/simplecov-lcov_spec.rb:27 # SimpleCov::Formatter::LcovFormatter#format generating report per file File is expected to exist "/tmp/guix-build-ruby-simplecov-lcov-0.8.0.drv-0/gem/coverage/lcov/spec-fixtures-hoge.rb.lcov"
rspec ./spec/simplecov-lcov_spec.rb:28 # SimpleCov::Formatter::LcovFormatter#format generating report per file File is expected to exist "/tmp/guix-build-ruby-simplecov-lcov-0.8.0.drv-0/gem/coverage/lcov/spec-fixtures-app-models-user.rb.lcov"
rspec ./spec/simplecov-lcov_spec.rb:38 # SimpleCov::Formatter::LcovFormatter#format generating report per file spec-fixtures-hoge.rb.lcov 
rspec ./spec/simplecov-lcov_spec.rb:48 # SimpleCov::Formatter::LcovFormatter#format generating report per file spec-fixtures-app-models-user.rb.lcov 
rspec ./spec/simplecov-lcov_spec.rb:62 # SimpleCov::Formatter::LcovFormatter#format generating report per file branch coverage enabled spec-fixtures-hoge.rb.branch.lcov 
rspec ./spec/simplecov-lcov_spec.rb:72 # SimpleCov::Formatter::LcovFormatter#format generating report per file branch coverage enabled spec-fixtures-app-models-user.rb.branch.lcov 
rspec ./spec/simplecov-lcov_spec.rb:98 # SimpleCov::Formatter::LcovFormatter#format generating single file report single_report_path is expected to match "SF:./spec/fixtures/hoge.rb\nDA:4,1\nDA:5,1\nDA:6,2\nDA:9,1\nDA:10,1\nDA:11,1\nDA:14,1\nDA:15,0\nDA:19,1\nDA:20,1\nend_of_record\n"
rspec ./spec/simplecov-lcov_spec.rb:99 # SimpleCov::Formatter::LcovFormatter#format generating single file report single_report_path is expected to match "SF:./spec/fixtures/app/models/user.rb\nDA:4,1\nDA:5,1\nDA:6,2\nDA:9,1\nDA:10,1\nDA:13,1\nDA:14,1\nDA:17,1\nDA:18,0\nDA:22,1\nDA:23,1\nDA:24,1\nDA:25,1\nend_of_record\n"

/gnu/store/j4z07lyi1ykk8bc68h1p4bpj1il9dn3f-ruby-2.7.4/bin/ruby -I/gnu/store/l3nss8vrb6laiqb1ayn9bri2vn4xnzj1-ruby-rspec-core-3.12.1/lib/ruby/vendor_ruby/gems/rspec-core-3.12.1/lib:/gnu/store/900s3ljm1d44zam9hsbxf7ckr49zrriv-ruby-rspec-support-3.12.0/lib/ruby/vendor_ruby/gems/rspec-support-3.12.0/lib /gnu/store/l3nss8vrb6laiqb1ayn9bri2vn4xnzj1-ruby-rspec-core-3.12.1/lib/ruby/vendor_ruby/gems/rspec-core-3.12.1/exe/rspec spec/configuration_spec.rb spec/simplecov-lcov_spec.rb failed
error: in phase 'check': uncaught exception:
%exception #<&invoke-error program: "rake" arguments: ("spec") exit-status: 1 term-signal: #f stop-signal: #f> 
phase `check' failed after 0.5 seconds
command "rake" "spec" failed with status 1

The dependencies used for the later attempt are: [email protected] [email protected] [email protected] [email protected].

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant