您在哪里看到的?老实说,如果有什么东西显示为 0.0 秒,那很可能是测量误差
我们用来提高 RSpec 性能的一些关键方法是:
GitHub - grosser/parallel_tests: Ruby: 2 CPUs = 2x Testing Speed for RSpec, Test::Unit and Cucumber
https://github.com/test-prof/test-prof/blob/master/docs/recipes/let_it_be.md(我们在代码库中将其包装在 fab! 帮助器中)
fab!