summaryrefslogtreecommitdiff
path: root/lib/tasks/test.rake
diff options
context:
space:
mode:
Diffstat (limited to 'lib/tasks/test.rake')
-rw-r--r--lib/tasks/test.rake20
1 files changed, 20 insertions, 0 deletions
diff --git a/lib/tasks/test.rake b/lib/tasks/test.rake
new file mode 100644
index 00000000..7c0ecd3a
--- /dev/null
+++ b/lib/tasks/test.rake
@@ -0,0 +1,20 @@
+namespace :test do
+ task :specs, [ :display ] => :environment do |t, args|
+ ENV['DISPLAY'] = args[:display] if args[:display]
+ Rake::Task['spec:suite:all'].invoke
+ end
+
+ task :jasmine, [ :display ] => :environment do |t, args|
+ ENV['DISPLAY'] = args[:display] if args[:display]
+ sh("bundle exec rake jasmine:ci")
+ end
+
+ task :all, [ :display ] => :environment do |t, args|
+ Rake::Task['test:jasmine'].invoke(args[:display])
+ Rake::Task['test:specs'].invoke(args[:display])
+ end
+
+ task :ci do
+ Rake::Task['test:all'].invoke(":99")
+ end
+end