运行一些耙机任务后会出现以下输出:
Loaded suite /usr/bin/rake Started Finished in 0.00042 seconds. 0 tests,0 assertions,0 failures,0 errors
此输出对于与测试无关的任务无用或必需.我想防止它出现.我认为这是因为要求某个文件或包含某个模块.
更新:看来我错了,这是在Rails内置的一些任务中出现的.以下是–trace加载的灯具的输出.
$rake db:fixtures:load --trace ** Invoke db:fixtures:load (first_time) ** Invoke environment (first_time) ** Execute environment ** Execute db:fixtures:load Loaded suite /usr/bin/rake Started Finished in 0.000255 seconds. 0 tests,0 errors