Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 33 lines (25 sloc) 0.68 kb
a07572b @mvz Prepare version 1.0.0 for release
authored
1 require 'rake/clean'
2 require "bundler/gem_tasks"
973b505 @mvz Set up first end-to-end test.
authored
3 require 'rake/testtask'
4
5 namespace :test do
6
7 Rake::TestTask.new(:unit) do |t|
8 t.libs = ['lib']
9 t.test_files = FileList['test/unit/*_test.rb']
dfed797 @mvz Use canonical way to turn on warnings in the test tasks.
authored
10 t.warning = true
973b505 @mvz Set up first end-to-end test.
authored
11 end
12
13 Rake::TestTask.new(:end_to_end) do |t|
14 t.libs = ['lib']
15 t.test_files = FileList['test/end_to_end/*_test.rb']
dfed797 @mvz Use canonical way to turn on warnings in the test tasks.
authored
16 t.warning = true
973b505 @mvz Set up first end-to-end test.
authored
17 end
18
614361c @brynary Run ParseTreeTestCase tests
brynary authored
19 Rake::TestTask.new(:pt_testcase) do |t|
20 t.libs = ['lib']
21 t.test_files = FileList['test/pt_testcase/*_test.rb']
22 t.warning = true
23 end
973b505 @mvz Set up first end-to-end test.
authored
24
cf2abb0 @mvz Add description for test:run task
authored
25 desc "Run all three test suites"
764e177 @mvz Autocorrect several offenses
authored
26 task run: [:unit, :end_to_end, :pt_testcase]
973b505 @mvz Set up first end-to-end test.
authored
27 end
28
29 desc 'Alias to test:run'
764e177 @mvz Autocorrect several offenses
authored
30 task test: 'test:run'
973b505 @mvz Set up first end-to-end test.
authored
31
764e177 @mvz Autocorrect several offenses
authored
32 task default: :test
Something went wrong with that request. Please try again.