带minitest的Ruby中的Selenium Webdriver。如何在文件中运行特定的测试用例

带minitest的Ruby中的Selenium Webdriver。如何在文件中运行特定的测试用例,ruby,webdriver,minitest,Ruby,Webdriver,Minitest,Im正在从Rspec过渡到minitest,以测试后面的比较速度和并行性、维护等 在Rspec中,我可以使用以下命令运行测试用例: rspec path/to/test/suite.rb -e 'Should test this case' “应测试此案例”是suite.rb文件中的这一行: it 'Should test this case' do ... end 但我似乎找不到任何方法在minitest中实现这一点。不仅可以运行单个测试,还可以使用正则表达式 $ ruby pat

Im正在从Rspec过渡到minitest,以测试后面的比较速度和并行性、维护等

在Rspec中,我可以使用以下命令运行测试用例:

rspec path/to/test/suite.rb -e 'Should test this case'
“应测试此案例”是suite.rb文件中的这一行:

it 'Should test this case' do
    ...
end

但我似乎找不到任何方法在minitest中实现这一点。

不仅可以运行单个测试,还可以使用正则表达式

$ ruby path/to/test/suite.rb --name /Should test this case/