@@ -44,6 +44,7 @@ var file = require('gulp-file');
4444var semver = require ( 'semver' ) ;
4545var sharedNeo4j = require ( './test/internal/shared-neo4j' ) . default ;
4646var ts = require ( 'gulp-typescript' ) ;
47+ var JasmineConsoleReporter = require ( 'jasmine-console-reporter' ) ;
4748
4849/**
4950 * 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 () {
166167 return gulp . src ( 'test/**/*.test.js' )
167168 . pipe ( jasmine ( {
168169 includeStackTrace : true ,
169- verbose : true
170+ reporter : newJasmineConsoleReporter ( )
170171 } ) ) . on ( 'end' , logActiveNodeHandles ) ;
171172} ) ;
172173
@@ -177,7 +178,7 @@ gulp.task('test-browser', function (cb) {
177178gulp . task ( 'run-browser-test' , function ( ) {
178179 return gulp . src ( 'lib/browser/neo4j-web.test.js' )
179180 . pipe ( jasmineBrowser . specRunner ( { console : true } ) )
180- . pipe ( jasmineBrowser . headless ( ) )
181+ . pipe ( jasmineBrowser . headless ( { reporter : newJasmineConsoleReporter ( ) } ) )
181182} ) ;
182183
183184gulp . task ( 'watch' , function ( ) {
@@ -241,7 +242,7 @@ gulp.task('run-stress-tests', function () {
241242 return gulp . src ( 'test/**/stress.test.js' )
242243 . pipe ( jasmine ( {
243244 includeStackTrace : true ,
244- verbose : true
245+ reporter : newJasmineConsoleReporter ( )
245246 } ) ) . on ( 'end' , logActiveNodeHandles ) ;
246247} ) ;
247248
@@ -273,3 +274,13 @@ function logActiveNodeHandles() {
273274 console . log ( '-- Active NodeJS handles START\n' , process . _getActiveHandles ( ) , '\n-- Active NodeJS handles END' ) ;
274275 }
275276}
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