aboutsummaryrefslogtreecommitdiffstats
path: root/Rakefile
diff options
context:
space:
mode:
authorIgor Minar2012-09-15 08:11:32 -0700
committerIgor Minar2012-09-15 08:11:53 -0700
commit89dd5662772dcdf46a4e8c19beba46ca9d87a0d6 (patch)
tree53d7df3c1fcc504ce9844c26ed687c6326e46ad6 /Rakefile
parent9d168f058f9c6d7eeae0daa7cb72ea4e02a0003a (diff)
downloadangular.js-89dd5662772dcdf46a4e8c19beba46ca9d87a0d6.tar.bz2
docs(contribute): update misc/contribute docs with Testacular info
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile20
1 files changed, 17 insertions, 3 deletions
diff --git a/Rakefile b/Rakefile
index 3bd3d1b0..e5664121 100644
--- a/Rakefile
+++ b/Rakefile
@@ -170,11 +170,14 @@ task :package => [:clean, :minify, :version, :docs] do
end
-desc 'Run all AngularJS tests'
-task :test, :browsers, :misc_options do |t, args|
+desc 'Start development webserver'
+task :webserver, :port do |t, args|
+ system "node lib/nodeserver/server.js #{args[:port]}"
+end
- puts args
+desc 'Run all AngularJS tests'
+task :test, :browsers, :misc_options do |t, args|
[ 'test:jqlite',
'test:jquery',
'test:modules',
@@ -187,6 +190,17 @@ end
namespace :test do
+ desc 'Run all unit tests (single run)'
+ task :unit, :browsers, :misc_options do |t, args|
+ [ 'test:jqlite',
+ 'test:jquery',
+ 'test:modules'
+ ].each do |task|
+ Rake::Task[task].invoke(args[:browsers], args[:misc_options])
+ end
+ end
+
+
desc 'Run jqLite-based unit test suite (single run)'
task :jqlite, :browsers, :misc_options do |t, args|
start_testacular('testacular-jqlite.conf.js', true, args[:browsers], args[:misc_options])