-
-
Notifications
You must be signed in to change notification settings - Fork 62
Change option names (module-path-filter and test-file-path-filter) and Enable to execute unique test modules after filtering #300
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
Conversation
1. Option names, from module-path-filter to module-path and from test-file-path-filter to file-path. 2. to enable to have unique test modules to run after filtering. e.g. when options are repeated it only runs one
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.
Largely this looks good, but I left 2 questions. Im curious if this is a breaking change, if so we may need to support both query params for a time.
@@ -48,8 +48,8 @@ export default class EmberExamMochaTestLoader extends TestLoader { | |||
* Loads the test modules depending on the urlParam | |||
*/ | |||
loadModules() { | |||
const modulePathFilter = this._urlParams.get('modulePathFilter'); | |||
const testFilePathFilter = this._urlParams.get('testFilePathFilter'); | |||
const modulePath = this._urlParams.get('modulePath'); |
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.
is this a breaking change?
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.
We never released the previous PR into a version. So would that still be consider breaking?
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.
ah, nope then no breaking change.
@@ -55,8 +55,8 @@ export default class EmberExamQUnitTestLoader extends TestLoader { | |||
loadModules() { | |||
const loadBalance = this._urlParams.get('loadBalance'); | |||
const browserId = this._urlParams.get('browser'); | |||
const modulePathFilter = this._urlParams.get('modulePathFilter'); | |||
const testFilePathFilter = this._urlParams.get('testFilePathFilter'); | |||
const modulePath = this._urlParams.get('modulePath'); |
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.
^
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.
same applies
|
Looks good to me! |
@step2yeung @stefanpenner As you all approve it’s good to go! Thank you all for the quick reviewing :) |
e.g. ember exam --file-path='foo/tests/unit/foo.js, /tests/unit/foo.js'
it executes
foo/tests/unit/foo.js
file once