Tests in new project won't execute. Advice on debugging further

Hi, I just started a new project for the first time in a very long time. I set up some basic models and controllers, and started working on model logic. Upon writing tests, I couldn’t actually get them to execute. Example test:

require "test_helper"

class UserTest < ActiveSupport::TestCase
  test "the truth" do
    assert true
  end

  test "lies" do 
    assert false
  end
end
shakyjelly@jacobs-air sparklefications % bin/rails -v                           
Rails 8.1.1
shakyjelly@jacobs-air sparklefications % bin/rails test test/models/user_test.rb
Run options: --seed 21712

# Running:



Finished in 0.000189s, 0.0000 runs/s, 0.0000 assertions/s.

0 runs, 0 assertions, 0 failures, 0 errors, 0 skips
shakyjelly@jacobs-air sparklefications %                    

Running with verbose doesn’t change anything. Any leads as to why my tests are being silently ignored?

1 Like

Maybe you’re running into this: tests not being picked up on a brand new plugin · Issue #56406 · rails/rails · GitHub?

3 Likes

Thank you! Moving back down to 5.something of minitest did the trick.