Move over unit testing to use grunt for better output

This commit is contained in:
Ryan Seddon
2012-08-30 14:54:22 +10:00
parent d90b536213
commit a4e882e638
3 changed files with 8 additions and 19 deletions

View File

@@ -1,12 +1,6 @@
language: node_js
node_js:
- 0.7
notifications:
email: false
- 0.8
before_script:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- npm install connect
- sudo node test/js/server.js &
- sleep 5
script: phantomjs test/qunit/run-qunit.js 'http://localhost:80/test/index.html?filter=!caniuse.com'
- npm install grunt
script: grunt travis --verbose

View File

@@ -11,6 +11,9 @@ module.exports = function( grunt ) {
' * Copyright (c) Faruk Ates, Paul Irish, Alex Sexton\n' +
' * Available under the BSD and MIT licenses: www.modernizr.com/license/\n */'
},
qunit: {
files: ['test/index.html']
},
lint: {
files: [
'grunt.js',
@@ -61,4 +64,6 @@ module.exports = function( grunt ) {
grunt.registerTask('default', 'min');
// Travis CI task.
grunt.registerTask('travis', 'qunit');
};

View File

@@ -1,10 +0,0 @@
var connect = require('connect'),
args = process.argv.slice(2),
folder = args[0] || '/../../',
port = args[1] || '80';
var server = connect.createServer(
connect.static(__dirname + folder)
).listen(port);
console.log("Server started on port %s in %s", port, folder);