-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
let child suites run if parent is exclusive; closes #2378 #2387
Conversation
- includes some more refactoring of interface code into `lib/interfaces/common.js` for DRY (still more work to be done here) - unfortunately said refactoring contains hellish logic which addresses this issue (someone should make a flowchart of this for lolz) - original PR did not address `exports` interface; this doesn't either - may need more coverage against `qunit` interface
suite.pending = Boolean(opts.pending); | ||
suite.file = opts.file; | ||
suites.unshift(suite); | ||
// I should be pilloried for the following. |
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.
The general idea is that we don't flip a bit on a Suite
if something like describe.only()
is used; instead we just reference its tests
prop to onlyTests
, so any tests in it (and within child Suite
s!) will be in the bucket.
If a Test
would override this behavior, we destroy the reference. The behavior below depends on whether or not the parent still has the reference intact, which is confusing and bad.
If anyone wants to "adjust" this, feel free; it's in the issue/2387
branch.
retrying travis; seems to be transient sauce failure |
Guess I'll just merge this and publish another beta. |
- includes some more refactoring of interface code into `lib/interfaces/common.js` for DRY (still more work to be done here) - unfortunately said refactoring contains hellish logic which addresses this issue (someone should make a flowchart of this for lolz) - original PR did not address `exports` interface; this doesn't either - may need more coverage against `qunit` interface
* 'master' of github.com:mochajs/mocha: (79 commits) Release v3.0.1 update CHANGELOG.md; rebuild [ci skip] fix nested describe.only suites; closes mochajs#2406 update date in CHANGELOG.md [ci skip] Release v3.0.0 rebuild mocha.js fix bad merge of karma.conf.js add note about spec reporter to CHANGELOG.md [ci skip] fixed typo in mocha.css introduced by 185c0d9 [ci skip] Remove carriage return before each test line in spec reporter. Served no purpose add "logo" field to package.json [ci skip] fix incorrect executable name with new version of commander add bower.json to published package for npmcdn support [ci skip] fix broken/wrong URLs in CHANGELOG.md [ci skip] Release v3.0.0-2 rebuild mocha.js add browser-stdout to dependencies update CHANGELOG [ci skip] let child suites run if parent is exclusive; closes mochajs#2378 (mochajs#2387) Upgrade eslint package to 2.13 version (mochajs#2389) ...
lib/interfaces/common.js
for DRY (still more work to be done here)exports
interface; this doesn't eitherqunit
interfaceThis is a PR into the
v3.0.0
branchcc @mochajs/core