You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Looks like someone bumped into this error years ago (#9 ), but I'm not sure if it's for the same reason. Looks like it's not possible mix spec's and regular minitests? We have a mixture of both, so it would be great to run them all with the same execution.
Test that Fails
It's just a blank minitest:
# frozen_string_literal: true
require 'minitest/test'
class SomeTest < Minitest::Test
def test_empty
end
end
/minispec-metadata/lib/minispec-metadata/tags.rb:61:in `block in runnable_method_matches_any_tags?': undefined method `metadata_for_test_name' for SomeTest:Class (NoMethodError)
from /Users/user/Development/minispec-metadata/lib/minispec-metadata/tags.rb:60:in `any?'
from /Users/user/Development/minispec-metadata/lib/minispec-metadata/tags.rb:60:in `runnable_method_matches_any_tags?'
from /Users/user/Development/minispec-metadata/lib/minispec-metadata/tags.rb:49:in `runnable_method_matches_any_inclusive_tag?'
from /Users/user/Development/minispec-metadata/lib/minispec-metadata/tags.rb:38:in `block in runnable_methods'
from /Users/user/Development/minispec-metadata/lib/minispec-metadata/tags.rb:37:in `select!'
from /Users/user/Development/minispec-metadata/lib/minispec-metadata/tags.rb:37:in `runnable_methods'
from /usr/local/lib/ruby/gems/2.6.0/gems/minitest-5.15.0/lib/minitest.rb:161:in `block in __run'
from /usr/local/lib/ruby/gems/2.6.0/gems/minitest-5.15.0/lib/minitest.rb:161:in `reject'
from /usr/local/lib/ruby/gems/2.6.0/gems/minitest-5.15.0/lib/minitest.rb:161:in `__run'
from /usr/local/lib/ruby/gems/2.6.0/gems/minitest-5.15.0/lib/minitest.rb:146:in `run'
from /usr/local/lib/ruby/gems/2.6.0/gems/minitest-5.15.0/lib/minitest.rb:73:in `block in autorun'
Looks like someone bumped into this error years ago (#9 ), but I'm not sure if it's for the same reason. Looks like it's not possible mix spec's and regular minitests? We have a mixture of both, so it would be great to run them all with the same execution.
Test that Fails
It's just a blank minitest:
Error
How to Reproduce
git clone git@github.com:The-Alchemist/minispec-metadata.git --branch 'bug/error_with_spec_and_regular_tests'
cd minispec-metadata && minitest spec/blank_minitest.test.rb --tag random_tag
The text was updated successfully, but these errors were encountered: