File: ruby-tests.rb

package info (click to toggle)
ruby-timecop 0.9.10-1.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 280 kB
  • sloc: ruby: 1,950; makefile: 17
file content (12 lines) | stat: -rw-r--r-- 338 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
# This strange way to run the tests (in independent processes) is inspired from timecop's Rakefile

  failed = Dir["test/*_test.rb"].map do |test|
    command = "ruby #{test}"
    puts
    puts command
    command unless system(command)
  end.compact
  if failed.any?
    abort "#{failed.count} Tests failed\n#{failed.join("\n")}"
  end