# File lib/bones/plugins/test.rb, line 37
37: def define_tasks
38: return unless have? :test
39: config = ::Bones.config
40:
41: namespace :test do
42: Rake::TestTask.new(:run) do |t|
43: t.libs = config.libs
44: t.test_files = if test(ff, config.test.file) then [config.test.file]
45: else config.test.files end
46: t.ruby_opts += config.ruby_opts
47: t.ruby_opts += config.test.opts
48: end
49: end # namespace :test
50:
51: desc 'Alias to test:run'
52: task :test => 'test:run'
53: end
# File lib/bones/plugins/test.rb, line 8
8: def initialize_test
9: ::Bones.config {
10: desc 'Configuration settings for the Ruby test framework.'
11: test {
12: files FileList['test/**/test_*.rb'], :desc => The list of test files to run. This defaults to all the ruby fines in the 'test' directory that start with 'test_' as their filename.
13:
14: file 'test/all.rb', :desc => In fashion at one time was the concept of an encompassing test file that would run all ruby tests for your project. You can specify that file here. If the file does not exist this setting will be ignored.
15:
16: opts [], :desc => Extra ruby options to be used when running tests.
17: }
18: }
19: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.