Method: Roby::Application#autodiscover_tests_in?
- Defined in:
- lib/roby/app.rb
#autodiscover_tests_in?(path) ⇒ Boolean
Hook for the plugins to filter out some paths that should not be auto-loaded by #each_test_file_in_app. It does not affect #each_test_file_for_loaded_models.
3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 |
# File 'lib/roby/app.rb', line 3331 def autodiscover_tests_in?(path) suffix = File.basename(path) if path == File.join(app_dir, "test", "robots") false elsif robots.has_robot?(suffix) && ![robot_name, robot_type].include?(suffix) false elsif defined? super super else true end end |