Method: Roby::Application#each_test_file_in
- Defined in:
- lib/roby/app.rb
#each_test_file_in(dir, &block) ⇒ Object
Enumerate all the test files in a specific dir for this robot configuration
3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 |
# File 'lib/roby/app.rb', line 3346 def each_test_file_in(dir, &block) return enum_for(__method__, dir) unless block_given? each_robot_test_file_in(dir, &block) Find.find(dir) do |path| # Skip the robot-specific bits that don't apply on the # selected robot Find.prune if File.directory?(path) && !autodiscover_tests_in?(path) if File.file?(path) && /^test_.*\.rb$/.match?(File.basename(path)) yield(path) end end end |