Skip to content

Commit 5ab4d4e

Browse files
committed
Add comments to explain mocha flag usages.
1 parent fc7e906 commit 5ab4d4e

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

config/ci.mocha.node.opts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,8 @@
1+
# With dot reporter, the full names of test case will not be displayed in log during execution.
2+
# The name and details of all failed cases will still be appended to log after execution.
3+
# See https://mochajs.org/#dot-matrix for more information.
14
--reporter dot
5+
6+
# Node doesn't exit after mocha test completion. Supplying this flag for force exit.
7+
# Not applicable in karma + mocha test (browser test).
28
--exit

config/mocha.browser.opts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
1+
# See:
2+
# - https://mochajs.org/#usage for more information on usage of mocha flags.
3+
# - https://github.com/karma-runner/karma-mocha for more information on all mocha flags which the
4+
# karma runner supports.
15
--timeout 20000
26
--retry 3

config/mocha.node.opts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1+
# Node doesn't exit after mocha test completion. Supplying this flag for force exit.
2+
# Not applicable in karma + mocha test (browser test).
13
--exit

0 commit comments

Comments
 (0)