-
Notifications
You must be signed in to change notification settings - Fork 29
Plugin freezes stating " Running Jasmine with PhantomJS" when I add specHtml to my gulp task #64
Description
I am using gulp-jasmine-phantom@3.0.0 to write unit tests. This is my gulp task:
gulp.task('test:unit-test', function() {
return gulp.src('test/unit/activity/Activity.spec.js')
.pipe(jasmine({
integration: true,
keepRunner: './',
vendor:[
'jspm_packages/system.js',
'system.config.js',
'test/activity/loader/debug-config.js'
],
specHtml: 'index.html',
abortOnFail: true
}));
});
When I remove the specHtml from my options it tries to run my unit tests and all the test fail, as it needs system.js to load before the system.config.js file. So I am trying to create a HTML template which jasmine should use for running unit tests.
I was trying to try to load a simple index.html file which lies on the base path of my project. The index.html file is just a blank file. See below:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Examples</title>
</head>
<body>
</body>
</html>
When I run it with the specHtml option in there the plugin just freezes on this command:
[12:44:09] Requiring external module babel-register
[12:44:10] Using gulpfile ~/source/cas-core-renderer-gulp/gulpfile.babel.js
[12:44:10] Starting 'test:unit-test'...
[12:44:10] Running Jasmine with PhantomJS
I waited like 15 minutes and it never moved so I assume something is wrong. Not sure if this is a bug with the plugin or what the error is. Can you please tell me how to see the logs or what is going on here ?
Thanks
O/S Mac OSX El Capitan
Node: 5.3.0
phantomJS : 2.1.1