-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add option to run tests in a specific file #1727
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -92,10 +92,10 @@ function setBrowsers(karmaConf, browserstack) { | |
} | ||
} | ||
|
||
module.exports = function(codeCoverage, browserstack, watchMode) { | ||
module.exports = function(codeCoverage, browserstack, watchMode, file) { | ||
var webpackConfig = newWebpackConfig(codeCoverage); | ||
var plugins = newPluginsArray(browserstack); | ||
var files = [ | ||
var files = file ? [file] : [ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think this needs to be Otherwise it fails on files which use This problem should fade away as progress gets made on #1508 and #1510... but for now it's common enough that the gulpfile should probably support it. |
||
'test/helpers/prebidGlobal.js', | ||
'test/**/*_spec.js' | ||
]; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you also add this to the
test-coverage
task?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure