Skip to content

Commit 1ce5fc5

Browse files
committed
assertions count issue
1 parent e822ed9 commit 1ce5fc5

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

lib/server.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@ var Log = require('./logger'),
1111
chalk = require('chalk'),
1212
mime = require('mime'),
1313
send = require('send'),
14-
vm = require('vm'),
15-
report = {};
14+
vm = require('vm');
1615

1716
exports.Server = function Server(bsClient, workers, config, callback) {
1817
var testFilePaths = (Array.isArray(config.test_path) ? config.test_path : [ config.test_path ])
1918
.map(function (path) {
2019
return path.split(/[?#]/)[0];
21-
});
20+
}),
21+
report = {};
2222

2323
function handleFile(filename, request, response, doNotUseProxy) {
2424
var url_parts = url.parse(request.url, true);

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"scripts": {
3434
"lint": "node_modules/.bin/jshint lib/*.js bin/ tests/*.js",
3535
"test-unit": "node_modules/.bin/mocha tests/unit",
36-
"test-behaviour": "node_modules/.bin/mocha tests/behaviour -R Spec",
36+
"test-behaviour": "node_modules/.bin/mocha tests/behaviour",
3737
"test-ci": "npm run lint && npm run test-unit && npm run test-behaviour && TEST_MODE=all tests/external-tests.js",
3838
"test": "npm run lint && npm run test-unit && npm run test-behaviour && TEST_MODE=required tests/external-tests.js",
3939
"update-util": "webpack"

tests/behaviour/runner.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,6 @@ describe('Pass/Fail reporting', function() {
122122
let config = getBaseConfig();
123123
browserstackRunner.run(config, function(err, report) {
124124
assert.equal(err, null);
125-
console.log(report);
126125
var parsedReport = JSON.parse(report);
127126
// Only failed assertions are emitted
128127
assert.equal(parsedReport["Windows 7, Chrome 52.0"].assertions.length, 8);
@@ -132,7 +131,6 @@ describe('Pass/Fail reporting', function() {
132131
});
133132
it('report should have specific keys', function(done) {
134133
let config = getBaseConfig();
135-
console.log(JSON.stringify(config));
136134
browserstackRunner.run(config, function(err, report) {
137135
assert.equal(err, null);
138136
var parsedReport = JSON.parse(report);
@@ -148,7 +146,6 @@ describe('Pass/Fail reporting', function() {
148146
});
149147
it('report should have message in assertions', function(done) {
150148
let config = getBaseConfig();
151-
console.log(JSON.stringify(config));
152149
browserstackRunner.run(config, function(err, report) {
153150
assert.equal(err, null);
154151
var parsedReport = JSON.parse(report);

0 commit comments

Comments
 (0)