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

Test Suite failure causes other Describe blocks in parent test suite to stop #3

Open
aljones15 opened this issue Apr 14, 2022 · 0 comments
Assignees

Comments

@aljones15
Copy link
Contributor

aljones15 commented Apr 14, 2022

This is more of a mocha issue, but in this library's describe block if possibly any assertion or possibly code in a before block is failing it causes the next describe block (in the case of di-ed25519-test-suite this is the crypto specific describe block) to not execute. This results in tests not running. One option might be to explicity to set bail to false in mocha, another possibility is binding the prototype of this test to the parent test suite. This only occurs on failure and might be intermittent.

Related issue: mochajs/mocha#2781

p.s. above issue suggests the issue might be with chai, if that is the case then using chai as a peerDep to ensure the same chai instance is being used in both tests might work, or passing chai into the function itself.

Potential Culprits:

  1. errors in before blocks
  2. assertions throwing
@aljones15 aljones15 self-assigned this Apr 14, 2022
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