Skip to content

Support async tests in runtests-parallel #24868

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

Merged
merged 2 commits into from
Jun 15, 2018
Merged

Support async tests in runtests-parallel #24868

merged 2 commits into from
Jun 15, 2018

Conversation

rbuckton
Copy link
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 weswigham and mhegazy June 11, 2018 18:53
@weswigham
Copy link
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
Contributor Author

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

@weswigham
Copy link
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

Where the types needed here?

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.

3 participants