I cannot get my test to run using phantomJs.
gulp task
var jasminePhantomJs = require('gulp-jasmine2-phantomjs'); gulp.task('test', function() { return gulp.src('./SpecRunner.html') .pipe(jasminePhantomJs()); });
SpecRunner.html
<script src="lib/jquery.min.js"></script> <script src="lib/lodash.min.js"></script> <script type="text/javascript" src="lib/jasmine-2.0.0/jasmine.js"></script> <script type="text/javascript" src="lib/jasmine-2.0.0/jasmine-html.js"></script> <script type="text/javascript" src="lib/jasmine-2.0.0/boot.js"></script> <script type="text/javascript" src="lib/jasmine-2.0.0/jasmine-jquery.js"></script> <!-- include source files here... --> <script type="text/javascript" src="dist/exportToCsv.js"></script> <!-- include spec files here... --> <script type="text/javascript" src="spec/exportToCsvSpec.js"></script>
Running this file standalone reports all my tests in exportToCsvSpec
to be passing. However, when I attempt to run my gulp task I get the following:
While I'm not familiar with this exact gulp plugin I am not new to phantom
. I can't seem to figure out why it's failing.
The code is located here if you'd like to play with it Linky CI is located here for those interested as well Other Linky