Skip to content

Commit 5f3a60b

Browse files
authored
Run stress tests out of Jasmine (#667) (#668)
The goal of this change is improve the stability of the stress test avoiding unexpected timeouts. This change also provide a way to configure the stress-test to run for a defined time period, it's particular interesting for when it's running in test-kit in cluster mode simulating the change on the cluster composition.
1 parent e812705 commit 5f3a60b

File tree

3 files changed

+629
-1
lines changed

3 files changed

+629
-1
lines changed

gulpfile.babel.js

+5
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,11 @@ gulp.task('run-stress-tests', function () {
222222
.on('end', logActiveNodeHandles)
223223
})
224224

225+
gulp.task('run-stress-tests-without-jasmine', function () {
226+
const stresstest = require('./test/stress-test')
227+
return stresstest()
228+
})
229+
225230
gulp.task('run-ts-declaration-tests', function (done) {
226231
return gulp
227232
.src(['test/types/**/*', 'types/**/*'], { base: '.' })

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"build": "gulp all",
1616
"start-neo4j": "gulp start-neo4j",
1717
"stop-neo4j": "gulp stop-neo4j",
18-
"run-stress-tests": "gulp run-stress-tests",
18+
"run-stress-tests": "gulp run-stress-tests-without-jasmine",
1919
"run-ts-declaration-tests": "gulp run-ts-declaration-tests",
2020
"docs": "esdoc -c esdoc.json",
2121
"versionRelease": "gulp set --x $VERSION && npm version $VERSION --no-git-tag-version",

0 commit comments

Comments
 (0)