Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions lib/log.js
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ function getMet(metric) {
print.coverage = function() {
var table;

if (!data.coverages.length) return
if (!data.coverages.length) return;

table = new Table({
head: ['File', 'Statements', 'Branches', 'Functions', 'Lines'],
Expand All @@ -242,9 +242,9 @@ print.coverage = function() {
print.globalCoverage = function() {
var coverage, table;

if (!data.coverages.length) return
if (!data.coverages.length) return;

coverage = exports.stats().coverage
coverage = exports.stats().coverage;
table = new Table({
head: ['Files', 'Statements', 'Branches', 'Functions', 'Lines'],
colWidths: [8, 14, 14, 14, 14]
Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ http://github.com/jquery/qunit

- cli
- testrunner api
- test coverage via instanbul
- test coverage via istanbul
- tests inside of one testfile run synchronous, but every testfile runs parallel
- tests from each file run in its own spawned node process
- same API for client and server side code (original QUnit is used)
Expand Down
8 changes: 4 additions & 4 deletions test/fixtures/async-test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
test('1', 1, function (){
ok(true, "tests intermixing sync and async tests #1")
ok(true, "tests intermixing sync and async tests #1");
});

test('a', 2, function(){
Expand All @@ -10,10 +10,10 @@ test('a', 2, function(){
ok(true, 'test a2');
start();
}, 10000);
})
});

test('2', 1, function (){
ok(true, "tests intermixing sync and async tests #2")
ok(true, "tests intermixing sync and async tests #2");
});

test('b', 2, function(){
Expand All @@ -24,4 +24,4 @@ test('b', 2, function(){
ok(true, 'test b2');
start();
}, 10);
})
});
4 changes: 2 additions & 2 deletions test/fixtures/testrunner-tests.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
test('myMethod test', function() {
equal(myMethod(), 123, 'myMethod returns right result');
equal(myMethod(), 321, 'this should trigger an error');
})
});

test('myAsyncMethod test', function() {
ok(true, 'myAsyncMethod started');
Expand All @@ -14,7 +14,7 @@ test('myAsyncMethod test', function() {
equal(data, 321, 'this should trigger an error');
start();
});
})
});

test('circular reference', function() {
equal(global, global, 'test global');
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/uncaught-exception-test.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
throw new Error('Some error.')
throw new Error('Some error.');