Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What should MiniTest::Spec files be named?

I want to use MiniTest::Spec, I found a couple resources to get started, but none of them mentioned what the test files (or spec files) should be named, and where they should be placed:

  • test/test_*
  • spec/*_spec.rb

So which one should I use?

like image 241
Robert Audi Avatar asked Nov 14 '22 02:11

Robert Audi


1 Answers

Assuming you are using rake you can specify your own path in the rake file e.g.

 Rake::TestTask.new do |t|
  t.libs << "test"
  t.test_files = FileList['test/test_*.rb']
  t.verbose = true
end
like image 107
macarthy Avatar answered Dec 10 '22 06:12

macarthy