Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
这是我的 rakefile 中唯一的内容。
Rake::TestTask.new do |t| t.libs << "test" t.test_files = FileList['test/test*.rb'] t.verbose = true end
当我运行 rake 时,我得到的输出是
uninitialized constant Rake::TestTask
我究竟做错了什么?我希望我的 rake 文件运行我指定的所有单元测试。任何输入都会有所帮助。谢谢
如果你require 'rake/testtask'在文件的顶部会发生什么?
require 'rake/testtask'