Skip to content

Commit a542b04

Browse files
committed
introduce gulp PhantomJS step
1 parent 573ef06 commit a542b04

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

gulpfile.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ var replace = require('gulp-replace');
55
var sourcemaps = require('gulp-sourcemaps');
66
var tsProject = require('tsproject');
77
var eventStream = require('event-stream');
8+
var mochaPhantomJS = require('gulp-mocha-phantomjs');
89

910
gulp.task('clean', function () {
1011
var del = require('del');
@@ -136,7 +137,9 @@ gulp.task('test-node', ['exceptionless.test.umd'], function(done) {
136137
});
137138

138139
gulp.task('test-browser', function(){
139-
140+
return gulp
141+
.src('testrunner.html')
142+
.pipe(mochaPhantomJS());
140143
});
141144

142145
gulp.task('test', ['test-node', 'test-browser']);

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
"gulp-concat": "2.6.0",
3737
"gulp-exec": "2.1.2",
3838
"gulp-mocha": "2.2.0",
39+
"gulp-mocha-phantomjs": "^0.12.0",
3940
"gulp-replace": "0.5.4",
4041
"gulp-sourcemaps": "1.6.0",
4142
"gulp-tslint": "6.0.1",

0 commit comments

Comments
 (0)