lib/tasks/zena.rake in zena-1.0.0 vs lib/tasks/zena.rake in zena-1.1.0
- old
+ new
@@ -439,9 +439,14 @@
t.pattern = tests
t.verbose = true
end
Rake::Task['zena:test'].comment = "Run the tests in test/helpers and test/unit"
+ desc 'Start server for Selenium testing'
+ task :test_server => ["zena:test:prepare", "zena:build_fixtures"] do
+ exec('script/server -e test')
+ end
+
desc 'Analyse code coverage by tests (needs rcov)'
task :coverage do
cmd = "rcov -I 'lib:test' --rails --exclude 'var/*,gems/*,/Library/*'"
test_files = FileList[*tests].map {|f| f.inspect}.join(' ')
cmd = "#{cmd} #{test_files}"