我正在浏览rails的源代码。 在activemodel的目录中。我们有一个Rakefile。有一个任务可以运行测试目录中的所有测试。只能在ActiveModel源代码中运行一个测试?
bundle exec rake test
Finished in 1.335200s, 530.2576 runs/s, 1492.6603 assertions/s.
708 runs, 1993 assertions, 0 failures, 0 errors, 0 skips
我想知道是否有一种方法可以让我在该目录中运行一个测试。
例如:仅仅只运行此文件导轨/ activemodel的/测试/件/ errors_test.rb
或者我可以测试在该文件中的一个情况?