Skip to content
This repository has been archived by the owner on Aug 1, 2023. It is now read-only.

Debugging #30

Closed
Stebalien opened this issue Jul 24, 2018 · 4 comments · Fixed by #96
Closed

Debugging #30

Stebalien opened this issue Jul 24, 2018 · 4 comments · Fixed by #96
Labels
kind/enhancement A net-new feature or improvement to an existing feature

Comments

@Stebalien
Copy link
Member

Please save stderr, stdout, and any errors for failed tests to files.

@Stebalien Stebalien added the kind/enhancement A net-new feature or improvement to an existing feature label Jul 24, 2018
@Stebalien
Copy link
Member Author

Also, when a test fails, we need to actually print the error. Currently, I just get a test number and the name of the test in red with no explanation for what went wrong or why I'm even seeing this.

@alanshaw
Copy link
Member

alanshaw commented Dec 4, 2018

By default mocha (the test runner) will save up the output until all the tests are done and then print the failed tests along with the error messages. If you want to fail fast and print the error immediately run npm run test -- --bail. Hope that helps!

@Stebalien
Copy link
Member Author

If you want to fail fast and print the error immediately...

Thanks, that will definitely help.

However, it would still be nice to get the daemon's stderr/stdout.

@alanshaw
Copy link
Member

alanshaw commented Jan 22, 2020

In the new https://github.com/ipfs/js-ipfsd-ctl you can use the env var DEBUG=ipfsd-ctl:daemon:std* to print daemon logs.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/enhancement A net-new feature or improvement to an existing feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants