Created
January 28, 2014 10:11
-
-
Save mdix/8665089 to your computer and use it in GitHub Desktop.
grunt -vvvv dalek:phantom
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Running tasks: dalek:phantom | |
Running "dalek:phantom" (dalek) task | |
Verifying property dalek.phantom exists in config...OK | |
Files: src/spec/test_phantom_chrome.js | |
Options: browser=["phantomjs"] | |
Fatal error: Unexpected token E |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* globals module*/ | |
module.exports = function(grunt) { | |
grunt.initConfig({ | |
dalek: { | |
chrome: { | |
options: { | |
browser: ['chrome'] | |
}, | |
src: 'src/spec/**/*chrome*.js' | |
}, | |
phantom: { | |
options: { | |
browser: ['phantomjs'] | |
}, | |
src: 'src/spec/**/*phantom*.js' | |
} | |
} | |
}); | |
grunt.loadNpmTasks('grunt-dalek'); | |
grunt.registerTask('default', ['dalek']); | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "Testproject", | |
"version": "0.1.0", | |
"description": "A simple testproject.", | |
"main": "index.js", | |
"scripts": { | |
"test": "echo \"Error: no test specified\" && exit 1" | |
}, | |
"repository": "", | |
"author": "", | |
"license": "BSD", | |
"devDependencies": { | |
"grunt": "~0.4.2", | |
"dalekjs": "0.0.8", | |
"grunt-dalek": "~0.2.0", | |
"dalek-browser-chrome": "0.0.9" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
'body element exists': function(test) { | |
test | |
.open('http://google.de') | |
.assert.exists('body', 'body exists') | |
.done(); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
'head element exists': function (test) { | |
test | |
.open('http://google.de') | |
.assert.exists('head', 'body exists') | |
.done(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment