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 framework deps #778

Closed
wants to merge 6 commits into from
Closed

Conversation

Jagjeet
Copy link
Contributor

@Jagjeet Jagjeet commented Oct 27, 2018

Proposed Changes

  • Update testing framework to the latest Mocha version

Testing Instructions

  • Run the test suite and verify there are no errors.

Fixes #712

@Jagjeet
Copy link
Contributor Author

Jagjeet commented Oct 27, 2018

As mentioned in #712, this is still failing due to what appears to be some configuration errors. I am still investigating.

@simison simison self-requested a review October 27, 2018 22:49
@Jagjeet Jagjeet force-pushed the test-framework-deps branch 2 times, most recently from 133de5c to 73afa98 Compare October 30, 2018 17:33
@Jagjeet
Copy link
Contributor Author

Jagjeet commented Nov 11, 2018

I was able to finally get the tests running, but Mocha hangs after they are complete. This issue is documented here, but I'm having issues debugging it.

mochajs/mocha#3044

There is an exit flag that can be used with Mocha to behave like v3, but even with that on, the hanging behavior still occurs.

Also currently, the database connection is not being terminated. In testing locally, even when I terminate the connection, mocha still hangs. The documentation suggests using the --recursive flag and an AfterAll hook, but I couldn't get it to work with gulp-mocha.

mochajs/mocha#2507

One option might be to use the Mocha API directly, but I haven't went down that road yet.

@simison
Copy link
Contributor

simison commented Nov 11, 2018 via email

@guaka guaka removed the in progress label Nov 21, 2018
@Jagjeet
Copy link
Contributor Author

Jagjeet commented Dec 17, 2018

@simison - It looks like this PR is still open if you want to start it again. I went ahead and rebased and got it updated. We could pull it onto a branch on Trustroots as well and continue working on it from there.

I believe the hang issue is related to on('end') not getting called resulting in not disconnecting from the database, but didn't very far in figuring out a solution.

@Jagjeet
Copy link
Contributor Author

Jagjeet commented Dec 17, 2018

One more thing, the mocha hangs seem to be a known issue after version 3. The links below maybe useful in debugging.

@nicksellen nicksellen mentioned this pull request Dec 13, 2019
5 tasks
@github-actions
Copy link

This pull request is marked as unloved because it has not had any activity for 180 days.

It doesn't mean it's not important, so please remove the unloved label if you like it, or add a comment saying what it means to you :)

However, if you just leave it like this, I'll close it in 14 days to help keep your pull requests tidy!

Thanks!

@github-actions github-actions bot added the Stale label May 30, 2020
@github-actions github-actions bot closed this Jun 16, 2020
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

3 participants