back to notes

Rails: Minitest: Run a single test by name

bundle exec rake db:test:prepare test TEST=test/models/user_test.rb  TESTOPTS="-n '/name required/'"

Run the test named name required in the file test/models/user_test.rb.

Source: http://stackoverflow.com/a/23045740/386517



last updated february 2017