-
Notifications
You must be signed in to change notification settings - Fork 784
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
Core: Implement only/skip and todo for modules #1168
Conversation
|
f81195c
to
c6932b4
Compare
I've rebased this and it is now ready for review. |
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.
Sorry for the delay in reviewing. This past month has been crazy.
FWIW, I think breaking this up into PRs for each function (skip, todo, only) would make it easier for us to review + merge more quickly.
config.currentModule = module; | ||
} | ||
|
||
function module( name, testEnvironment, executeNow ) { |
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.
Can you add a TODO
comment here noting that we should extract this to a new file? (I think it'll require some refactoring, so I don't want it to be in this PR).
suiteReport: new SuiteReport( name, parentSuite ) | ||
suiteReport: new SuiteReport( name, parentSuite ), | ||
|
||
// Pass along `skip` and `todo` properties from patent module, in case there |
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.
Typo: patent -> parent
return; | ||
} | ||
|
||
moduleStack.length = 0; |
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.
I don't think we should do this. If you focus a module that is nested within another, then the moduleStack
would still need to be used.
No worries! I will try to split this PR & address the above comments as soon as possible. Thanks! |
As requested in qunitjs#1168 (comment)
As requested in qunitjs#1168 (comment)
As requested in #1168 (comment)
This is a work in progress to implementQUnit.module.{only, skip, todo}
.I still need to add some tests and make sure everything is working as expected.
Suggestions are more than welcome.
/Cc @trentmwillis