@@ -44,6 +44,7 @@ var file = require('gulp-file');
44
44
var semver = require ( 'semver' ) ;
45
45
var sharedNeo4j = require ( './test/internal/shared-neo4j' ) . default ;
46
46
var ts = require ( 'gulp-typescript' ) ;
47
+ var JasmineConsoleReporter = require ( 'jasmine-console-reporter' ) ;
47
48
48
49
/**
49
50
* Useful to investigate resource leaks in tests. Enable to see active sockets and file handles after the 'test' task.
@@ -166,7 +167,7 @@ gulp.task('test-nodejs', ['install-driver-into-sandbox'], function () {
166
167
return gulp . src ( 'test/**/*.test.js' )
167
168
. pipe ( jasmine ( {
168
169
includeStackTrace : true ,
169
- verbose : true
170
+ reporter : newJasmineConsoleReporter ( )
170
171
} ) ) . on ( 'end' , logActiveNodeHandles ) ;
171
172
} ) ;
172
173
@@ -177,7 +178,7 @@ gulp.task('test-browser', function (cb) {
177
178
gulp . task ( 'run-browser-test' , function ( ) {
178
179
return gulp . src ( 'lib/browser/neo4j-web.test.js' )
179
180
. pipe ( jasmineBrowser . specRunner ( { console : true } ) )
180
- . pipe ( jasmineBrowser . headless ( ) )
181
+ . pipe ( jasmineBrowser . headless ( { reporter : newJasmineConsoleReporter ( ) } ) )
181
182
} ) ;
182
183
183
184
gulp . task ( 'watch' , function ( ) {
@@ -241,7 +242,7 @@ gulp.task('run-stress-tests', function () {
241
242
return gulp . src ( 'test/**/stress.test.js' )
242
243
. pipe ( jasmine ( {
243
244
includeStackTrace : true ,
244
- verbose : true
245
+ reporter : newJasmineConsoleReporter ( )
245
246
} ) ) . on ( 'end' , logActiveNodeHandles ) ;
246
247
} ) ;
247
248
@@ -273,3 +274,13 @@ function logActiveNodeHandles() {
273
274
console . log ( '-- Active NodeJS handles START\n' , process . _getActiveHandles ( ) , '\n-- Active NodeJS handles END' ) ;
274
275
}
275
276
}
277
+
278
+ function newJasmineConsoleReporter ( ) {
279
+ return new JasmineConsoleReporter ( {
280
+ colors : 1 ,
281
+ cleanStack : 1 ,
282
+ verbosity : 4 ,
283
+ listStyle : 'indent' ,
284
+ activity : false
285
+ } ) ;
286
+ }
0 commit comments