Sha256: 22bd78e93cede222ffe2833493faeac7e6825048d47f09acb9284c55b3994d5a
Contents?: true
Size: 1.33 KB
Versions: 1
Compression:
Stored size: 1.33 KB
Contents
require 'rake' require './test/setup' require 'bundler/gem_helper' def run unit = nil session = Specular.new session.boot do extend Enginery::Test::SpecHelper include Enginery::Test::SpecHelper cleanup end session.halt { cleanup } puts "\n***\nTesting %s ..." % (unit ? unit : :everything) session.run %r[#{unit}] puts session.failures if session.failed? puts session.summary session.exit_code == 0 end %w[Project Controller Route View Model Spec Helper Admin].each do |unit| desc('Run Tests for %s Generator' % unit) task('tg:' + unit.downcase[0]) { run(unit + 'Generator') || fail } end desc 'Run all Generator tests' task(:tg) { run(:Generator) || fail } %w[ActiveRecord DataMapper Sequel].each do |orm| desc('Run Tests for %s Migrator' % orm) task('tm:' + orm.downcase[0]) { run(orm + 'Migrator') || fail } end desc 'Run all Migrator tests' task(:tm) { run(:Migrator) || fail } %w[Controller Route View Spec Model Migration Helper Admin].each do |unit| desc('Run %s Deletion Tests' % unit) task('td:' + (unit =~ /\Am/i ? unit.downcase[0..1] : unit.downcase[0])) { run('Delete' + unit) || fail } end desc 'Run all Deletion tests' task(:td) { run(:Delete) || fail } desc 'Run all tests' task(:t) { run || fail } desc 'Run all tests, alias for "t"' task test: :t task default: :t Bundler::GemHelper.install_tasks
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
my_enginery-0.2.8 | Rakefile |