Skip to content

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

Merged
merged 1 commit into from
Jun 18, 2019

Conversation

choheekim
Copy link
Collaborator

@choheekim choheekim commented Jun 18, 2019

  1. Change option names to simplify:
  • module-path-filter to module-path
  • test-file-path-filter to file-path
  1. Enable to execute unique test modules after filtering.
    e.g. ember exam --file-path='foo/tests/unit/foo.js, /tests/unit/foo.js'
    it executes foo/tests/unit/foo.js file once

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
@choheekim choheekim changed the title This commit changes Change option names (module-path-filter and test-file-path-filter) and Enable to execute unique test modules after filtering Jun 18, 2019
Copy link
Contributor

@stefanpenner stefanpenner left a 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');
Copy link
Contributor

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?

Copy link
Collaborator

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?

Copy link
Contributor

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');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

^

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same applies

@stefanpenner
Copy link
Contributor

:shipit:

@step2yeung
Copy link
Collaborator

Looks good to me!
@choheekim confirming, we are good to merge?

@choheekim
Copy link
Collaborator Author

choheekim commented Jun 18, 2019

@step2yeung @stefanpenner As you all approve it’s good to go! Thank you all for the quick reviewing :)

@step2yeung step2yeung merged commit 4f0653d into ember-cli:master Jun 18, 2019
@choheekim choheekim deleted the enhance_filtering branch September 30, 2019 20:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants