CircleCI-Public / minitest-ci

Minitest reporter plugin for CircleCI
Other
24 stars 25 forks source link

nil can't be coerced into Float (TypeError) #32

Open deepakmahakale opened 2 months ago

deepakmahakale commented 2 months ago

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'