Skip to content
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

test not using Minitest::Spec as ancestor is missing described names in test filtering #256

Open
grosser opened this issue Sep 28, 2024 · 0 comments

Comments

@grosser
Copy link
Contributor

grosser commented Sep 28, 2024

before matching Minitest::Spec:

describe "bar" do
  it "baz" do
    puts 1
  end
end

run via ruby -n bar_test.rb 'bar#test_0001_baz'

after matching ActiveSupport::TestCase:

describe "bar", :model do
  it "baz" do
    puts 1
  end
end

ruby bar_test.rb -v says the name is bar::model#test_0001_baz
but running ruby bar_test.rb -n 'bar::model#test_0001_baz' does not work
only ruby bar_test.rb -n 'test_0001_baz' does
this breaks running tests by line via minitest-line because it correctly uses bar::model#test_0001_baz

also tried Minitest::Spec::DSL::TYPES[0] = [//, ActiveSupport::TestCase] and it has the same effect, the describe part is gone

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