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

RFC: Test runner integration #78

Closed
krzkaczor opened this issue Nov 23, 2020 · 0 comments
Closed

RFC: Test runner integration #78

krzkaczor opened this issue Nov 23, 2020 · 0 comments

Comments

@krzkaczor
Copy link
Contributor

Description

Some advanced features like:

  • expect a number of assertions
  • snapshots

require that earl has some level of integration with a test runner. Such integration can provide:

  • hooks before/after test case
  • provides a name for a test case

Test runner agnostism

Even though earl should be runner agnostic we optimize for mocha and this should be the first properly supported test runner.

Integration should be as simple as adding earljs/runners/mocha to require option of mocha.

Implementation plan

Good MVP is support for jest's expect.assertions(number). To support this we need post test case hooks. Integration should work with mocha parallel mode.

Old outdated issue: #14

@krzkaczor krzkaczor mentioned this issue Nov 28, 2020
4 tasks
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

No branches or pull requests

1 participant