Skip to content

Support async tests in runtests-parallel#24868

Merged
rbuckton merged 2 commits into
masterfrom
parallelAsyncTests
Jun 15, 2018
Merged

Support async tests in runtests-parallel#24868
rbuckton merged 2 commits into
masterfrom
parallelAsyncTests

Conversation

@rbuckton
Copy link
Copy Markdown
Contributor

Recently discovered when adding some evaluation tests, our parallel test runner did not support async mocha tests (either using done, or via async functions). This changes the parallel test runner to leverage more of Mocha to actually run the tests in each parallel worker to avoid future inconsistencies.

NOTE: This PR includes a private copy of the mocha definitions until such time as DefinitelyTyped/DefinitelyTyped#26396 has been merged.

@rbuckton rbuckton requested review from mhegazy and weswigham June 11, 2018 18:53
@weswigham
Copy link
Copy Markdown
Member

@rbuckton: why not just publish the mocha types to GitHub and reference the repo in the package.json - that way they don't need to be in this PR, and don't need to be removed when they're upstreamed?

@rbuckton rbuckton force-pushed the parallelAsyncTests branch from 7212de1 to ece8f26 Compare June 11, 2018 21:23
@rbuckton
Copy link
Copy Markdown
Contributor Author

@weswigham rather than that, do you want to just take a look at DefinitelyTyped/DefinitelyTyped#26396?

@weswigham
Copy link
Copy Markdown
Member

@rbuckton Now that the mocha types are merged and published, is this OK to have its merge conflicts resolved and then merged?

@rbuckton rbuckton merged commit 6c8ecc7 into master Jun 15, 2018
@rbuckton rbuckton deleted the parallelAsyncTests branch June 15, 2018 21:02
@alfaproject
Copy link
Copy Markdown

Where the types needed here?

@microsoft microsoft locked as resolved and limited conversation to collaborators Oct 21, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants