Skip to content

Commit 485798e

Browse files
committed
log test title with clearer separator
1 parent c7f2af7 commit 485798e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/runAllTests.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ const { shuffle } = require('./');
44
// CONSTANTS
55

66
const TEST_RUNNERS = ['ava', 'jest', 'mocha', 'parallel'];
7+
const DOTS = '. '.repeat(16);
78
const testRunners = shuffle(TEST_RUNNERS);
89

910
// UTILS
@@ -61,6 +62,10 @@ const runScript = scriptObj => {
6162
return Date.now() - start;
6263
};
6364

65+
const logTestTitle = name => {
66+
console.log('\n\n', DOTS, '\n running tests for', name, '\n', DOTS, '\n\n');
67+
};
68+
6469
// sort, format, and log test results
6570
const logResults = resultsArr => {
6671
resultsArr
@@ -98,7 +103,7 @@ const main = () => {
98103
for (const name of testRunners) {
99104
const { run } = testData[name];
100105

101-
console.log('running tests for', name, '\n. . . . . . . . ');
106+
logTestTitle(name);
102107

103108
testData[name].executionTime = run();
104109
testResults.push(testData[name]);

0 commit comments

Comments
 (0)