Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/ruby/21.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/cplusplus/140.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby Test:Unit如何在一个深嵌套文件夹中定位测试类?_Ruby_Unit Testing_Ruby Test - Fatal编程技术网

Ruby Test:Unit如何在一个深嵌套文件夹中定位测试类?

Ruby Test:Unit如何在一个深嵌套文件夹中定位测试类?,ruby,unit-testing,ruby-test,Ruby,Unit Testing,Ruby Test,Ruby Test:Unit如何在一个深嵌套文件夹中定位测试类?我是一名Java开发人员,我了解JUnit和TestNG如何使用定义的过滤器扫描文件夹以定位测试 我想知道是否有人可以向我解释Ruby如何使用类似的方法定位测试类,更喜欢使用某种文件名过滤器 比如说,我有一个这样的目录结构;那么Ruby Test::Unit Test runner如何只定位以字母“b”结尾的测试呢 project -main -tests -group1 -test1a.rb

Ruby Test:Unit如何在一个深嵌套文件夹中定位测试类?我是一名Java开发人员,我了解JUnit和TestNG如何使用定义的过滤器扫描文件夹以定位测试

我想知道是否有人可以向我解释Ruby如何使用类似的方法定位测试类,更喜欢使用某种文件名过滤器

比如说,我有一个这样的目录结构;那么Ruby Test::Unit Test runner如何只定位以字母“b”结尾的测试呢

project
  -main
  -tests
    -group1
      -test1a.rb
      -test1b.rb
    -group2
      -test2a.rb
      -test2b.rb
    -group3
      -test3a.rb
      -test3b.rb
    -group4
      -test4a.rb
      -test4b.rb

文档链接很有帮助。

好的,我想我已经找到了答案,除非其他人能给出更好的答案,否则这个答案似乎是正确的