| 43 | | Rake::Task["test:units"].invoke rescue got_error = true |
|---|
| 44 | | Rake::Task["test:functionals"].invoke rescue got_error = true |
|---|
| 45 | | |
|---|
| 46 | | if File.exist?("test/integration") |
|---|
| 47 | | Rake::Task["test:integration"].invoke rescue got_error = true |
|---|
| | 43 | test_tasks = ["test:units", "test:functionals"] |
|---|
| | 44 | test_tasks << "test:integration" if File.exist?("test/integration") |
|---|
| | 45 | |
|---|
| | 46 | got_error = false |
|---|
| | 47 | test_tasks.each do |test_task| |
|---|
| | 48 | begin |
|---|
| | 49 | Rake::Task[test_task].invoke |
|---|
| | 50 | rescue => e |
|---|
| | 51 | got_error = true |
|---|
| | 52 | puts("Rake task '#{test_task}' threw exception #{e} - #{e.backtrace.join("\n ")}") |
|---|
| | 53 | end |
|---|