We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4257597 commit 2d6e56bCopy full SHA for 2d6e56b
build/grunt-tasks/open.js
@@ -0,0 +1,11 @@
1
+/**
2
+ * Open unit tests in real browser.
3
+ */
4
+
5
+module.exports = function (grunt) {
6
+ grunt.registerTask('open', function () {
7
+ var path = require('path')
8
+ var exec = require('child_process').exec
9
+ exec('open ' + path.resolve(__dirname, '../../test/unit/runner.html'))
10
+ })
11
+}
gruntfile.js
@@ -81,6 +81,7 @@ module.exports = function (grunt) {
81
require('./build/grunt-tasks/casper')(grunt)
82
require('./build/grunt-tasks/codecov')(grunt)
83
require('./build/grunt-tasks/release')(grunt)
84
+ require('./build/grunt-tasks/open')(grunt)
85
86
// register composite tasks
87
grunt.registerTask('unit', ['karma:browsers'])
0 commit comments