Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

Commit e6c757c

Browse files
caitpThomasBurleson
authored andcommitted
build(gulp): use --reporters argument for karma/karma-fast tasks
Allow overriding configured defaults via CLI Closes #3629.
1 parent b24f6c7 commit e6c757c

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

gulp/tasks/karma-fast.js

+5
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ exports.task = function (done) {
2121
}
2222
// NOTE: `karma-fast` does NOT test Firefox by default.
2323

24+
if ( args.reporters ) {
25+
karmaConfig.reporters = args.reporters.trim().split(',');
26+
}
27+
28+
2429
gutil.log('Running unit tests on unminified source.');
2530
karma.start(karmaConfig, captureError(clearEnv,clearEnv));
2631

gulp/tasks/karma.js

+4
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ exports.task = function (done) {
4343
karmaConfig.browsers = ['Firefox', 'PhantomJS'];
4444
}
4545

46+
if ( args.reporters ) {
47+
karmaConfig.reporters = args.reporters.trim().split(',');
48+
}
49+
4650
gutil.log('Running unit tests on unminified source.');
4751
karma.start(karmaConfig, captureError(testMinified,clearEnv));
4852

0 commit comments

Comments
 (0)