-
-
Notifications
You must be signed in to change notification settings - Fork 62
Introducing module-path-filter and test-file-path-filter in ember-exam #266
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
Working on validating and adding tests against the option and will be adding design docs soon. |
ffbeb86
to
921067f
Compare
0b7aed5
to
3aab1e6
Compare
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.
Left some small nit-picks, but others (assuming this works as expected) this LGTM!
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.
Would love to see docs for this as well! Otherwise, some comments but looking forward to this!!
LGTM after #266 (comment) is addressed. |
42f3429
to
c021f1c
Compare
Update:
|
6539937
to
a65665e
Compare
New features introduced so far in this pr:
The two options filter test modules by either module path or test file path. Users can either provide module path in a form of string or regex or test file path. For an option Soon to update to support to allow multiple paths, e.g. |
51cc373
to
f7e2aed
Compare
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.
this LGTM, any further considerations or are we ready to move forward?
It's ready to move forward but I'd love to get another approval from @step2yeung. What do you think? |
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.
This is looking good, can remove the WIP tag? Could we get docs for this as well?
Status: Working on addressing review comments and updating docs |
Yes, I'm currently working on docs :) |
c82d317
to
8184515
Compare
@stefanpenner @step2yeung Docs has been updated and all comments are addressed :) |
@choheekim nice, looks like it needs a rebase. Mind doing that, at which point I'm good with us shipping this. |
Rebased and CI is passing now :) Ready to be shipped |
ember-test provides
filter
andmodules
to allow executing a subset of the whole test suite. The problem of current provided options is that the filtering is processed after loading a test module, which means that the filtering is done in QUnit level after requiring a module. This results requiring all the test modules in the test suite even though a subset of the tests is targeted to execute.module-path-filter
andtest-file-path-filter
option provide to allow running a targeted test modules that are matched with a given module path string and it only loads/requires the targeted test modules which could impact reducing test loading time.