File: .autotest

package info (click to toggle)
ruby-extlib 0.9.16-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 576 kB
  • sloc: ruby: 7,014; makefile: 5
file content (21 lines) | stat: -rw-r--r-- 503 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Autotest.add_hook :initialize do |at|
  ignore = %w[ .git log plugins script tasks bin CHANGELOG FAQ MIT-LICENSE QUICKLINKS README ]

  ignore.each do |exception|
    at.add_exception(exception)
  end

  at.clear_mappings

  at.add_mapping(%r{^spec/.+_spec\.rb$}) do |filename,_|
    filename
  end

  at.add_mapping(%r{^lib/extlib/(.+)\.rb$}) do |_,match|
    [ "spec/#{match[1]}_spec.rb" ]
  end

  at.add_mapping(%r{^spec/spec_helper\.rb$}) do
    at.files_matching(%r{^spec/.+_spec\.rb$})
  end
end