Skip to content
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

Merged
merged 1 commit into from Jul 26, 2016

Conversation

boneskull
Copy link
Member

  • 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

This is a PR into the v3.0.0 branch

cc @mochajs/core

- 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
@boneskull boneskull added the status: waiting for author waiting on response from OP - more information needed label Jul 21, 2016
@boneskull boneskull added this to the v3.0.0 milestone Jul 21, 2016
suite.pending = Boolean(opts.pending);
suite.file = opts.file;
suites.unshift(suite);
// I should be pilloried for the following.
Copy link
Member Author

@boneskull boneskull Jul 21, 2016

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 Suites!) 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.

@boneskull
Copy link
Member Author

boneskull commented Jul 21, 2016

I'm extremely bothered by the fact that this PR #2387 is a fix for issue #2378.

@boneskull
Copy link
Member Author

retrying travis; seems to be transient sauce failure

@boneskull
Copy link
Member Author

Guess I'll just merge this and publish another beta.

@boneskull boneskull merged commit 9ea2011 into v3.0.0 Jul 26, 2016
@boneskull boneskull deleted the issue/2378 branch July 26, 2016 06:13
boneskull added a commit that referenced this pull request Aug 1, 2016
- 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
helderroem added a commit to helderroem/mocha that referenced this pull request Aug 7, 2016
* '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)
  ...
@boneskull boneskull removed the status: waiting for author waiting on response from OP - more information needed label Dec 12, 2017
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

1 participant