Method: Roby::Application#each_robot_test_file_in
- Defined in:
- lib/roby/app.rb
#each_robot_test_file_in(dir) ⇒ Object
Enumerate all the test files specific for this robot configuration
3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 |
# File 'lib/roby/app.rb', line 3364 def each_robot_test_file_in(dir) return enum_for(__method__, dir) unless block_given? return unless File.directory?(dir) robot_test_dir = File.join(dir, "robots") [robot_name, robot_type].each do |name| robot_test_file = File.join(robot_test_dir, "test_#{name}.rb") if File.file?(robot_test_file) yield(robot_test_file) break end end end |