Skip to content

Commit ddeef04

Browse files
committed
Moved boltkit tests to not run by default
1 parent 1178d1a commit ddeef04

6 files changed

+24
-3
lines changed

gulpfile.babel.js

+11
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,17 @@ gulp.task('test-nodejs', ['nodejs'], function () {
154154
}));
155155
});
156156

157+
gulp.task('test-boltkit', ['nodejs'], function () {
158+
return gulp.src('test/**/*.boltkit.it.js')
159+
.pipe(jasmine({
160+
// reporter: new reporters.JUnitXmlReporter({
161+
// savePath: "build/nodejs-test-reports",
162+
// consolidateAll: false
163+
// }),
164+
includeStackTrace: true
165+
}));
166+
});
167+
157168
gulp.task('test-browser', function (cb) {
158169
runSequence('all', 'run-browser-test', cb)
159170
});

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
},
1111
"scripts": {
1212
"test": "gulp test",
13+
"boltkit": "gulp test-boltkit",
1314
"build": "gulp all",
1415
"start-neo4j": "gulp start-neo4j",
1516
"stop-neo4j": "gulp stop-neo4j",

runTests.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ else
1616
fi
1717

1818
sleep 2
19-
npm test
19+
npm test
File renamed without changes.
File renamed without changes.

test/v1/transaction.test.js

+11-2
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,13 @@ var neo4j = require("../../lib/v1");
2121

2222
describe('transaction', function() {
2323

24-
var driver, session;
24+
var driver, session, server;
2525

2626
beforeEach(function(done) {
2727
driver = neo4j.driver("bolt://localhost", neo4j.auth.basic("neo4j", "neo4j"));
28+
driver.onCompleted = function (meta) {
29+
server = meta['server'];
30+
};
2831
session = driver.session();
2932

3033
session.run("MATCH (n) DETACH DELETE n").then(done);
@@ -162,7 +165,7 @@ describe('transaction', function() {
162165
// When
163166
var tx = session.beginTransaction();
164167
tx.run("CREATE (:TXNode1)");
165-
tx.rollback()
168+
tx.rollback();
166169

167170
tx.commit()
168171
.catch(function (error) {
@@ -216,6 +219,12 @@ describe('transaction', function() {
216219
});
217220

218221
it('should provide bookmark on commit', function (done) {
222+
//bookmarking is not in 3.0
223+
if (!server) {
224+
done();
225+
return;
226+
}
227+
219228
// When
220229
var tx = session.beginTransaction();
221230
expect(session.lastBookmark()).not.toBeDefined();

0 commit comments

Comments
 (0)