minitest-ci icon indicating copy to clipboard operation
minitest-ci copied to clipboard

nil can't be coerced into Float (TypeError)

Open deepakmahakale opened this issue 6 months ago • 0 comments

It seems like an issue with generating the report

[Minitest::CI] Generating test report in JUnit XML format...
/home/circleci/my-project/vendor/bundle/ruby/3.2.0/gems/minitest-ci-3.4.0/lib/minitest/ci_plugin.rb:115:in `+': nil can't be coerced into Float (TypeError)

        total_time += result.time
                      ^^^^^^^^^^^
        from /home/circleci/my-project/vendor/bundle/ruby/3.2.0/gems/minitest-ci-3.4.0/lib/minitest/ci_plugin.rb:115:in `block in generate_results'
        from /home/circleci/my-project/vendor/bundle/ruby/3.2.0/gems/minitest-ci-3.4.0/lib/minitest/ci_plugin.rb:114:in `each'
        from /home/circleci/my-project/vendor/bundle/ruby/3.2.0/gems/minitest-ci-3.4.0/lib/minitest/ci_plugin.rb:114:in `generate_results'
        from /home/circleci/my-project/vendor/bundle/ruby/3.2.0/gems/minitest-ci-3.4.0/lib/minitest/ci_plugin.rb:99:in `block (3 levels) in report'
        from /home/circleci/my-project/vendor/bundle/ruby/3.2.0/gems/minitest-ci-3.4.0/lib/minitest/ci_plugin.rb:98:in `open'
        from /home/circleci/my-project/vendor/bundle/ruby/3.2.0/gems/minitest-ci-3.4.0/lib/minitest/ci_plugin.rb:98:in `block (2 levels) in report'
        from /home/circleci/my-project/vendor/bundle/ruby/3.2.0/gems/minitest-ci-3.4.0/lib/minitest/ci_plugin.rb:97:in `each'
        from /home/circleci/my-project/vendor/bundle/ruby/3.2.0/gems/minitest-ci-3.4.0/lib/minitest/ci_plugin.rb:97:in `block in report'
        from /home/circleci/my-project/vendor/bundle/ruby/3.2.0/gems/minitest-ci-3.4.0/lib/minitest/ci_plugin.rb:96:in `chdir'
        from /home/circleci/my-project/vendor/bundle/ruby/3.2.0/gems/minitest-ci-3.4.0/lib/minitest/ci_plugin.rb:96:in `report'
        from /home/circleci/my-project/vendor/bundle/ruby/3.2.0/gems/minitest-5.24.1/lib/minitest.rb:1008:in `each'
        from /home/circleci/my-project/vendor/bundle/ruby/3.2.0/gems/minitest-5.24.1/lib/minitest.rb:1008:in `report'
        from /home/circleci/my-project/vendor/bundle/ruby/3.2.0/gems/minitest-5.24.1/lib/minitest.rb:297:in `run'
        from /home/circleci/my-project/vendor/bundle/ruby/3.2.0/gems/minitest-5.24.1/lib/minitest.rb:86:in `block in autorun'

deepakmahakale avatar Aug 21 '24 10:08 deepakmahakale