--- !ruby/object:RI::MethodDescription 
aliases: []

block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: Adds a file mapping, optionally prepending the mapping to the front of the list if <tt>prepend</tt> is true. <tt>regexp</tt> should match a file path in the codebase. <tt>proc</tt> is passed a matched filename and Regexp.last_match. <tt>proc</tt> should return an array of tests to run.
- !ruby/struct:SM::Flow::P 
  body: "For example, if test_helper.rb is modified, rerun all tests:"
- !ruby/struct:SM::Flow::VERB 
  body: "  at.add_mapping(/test_helper.rb/) do |f, _|\n    at.files_matching(/^test.*rb$/)\n  end\n"
full_name: Autotest#add_mapping
is_singleton: false
name: add_mapping
params: (regexp, prepend = false, &proc)
visibility: public
