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

Instruct the test suite to run only one test #1

Open
CrowdHailer opened this issue May 15, 2018 · 5 comments
Open

Instruct the test suite to run only one test #1

CrowdHailer opened this issue May 15, 2018 · 5 comments

Comments

@CrowdHailer
Copy link

I'm trying to run this test suite over my implementation of the handshake. It is quite noisy to debug. Is there a way to instruct this suite to run only one test

@AljoschaMeyer
Copy link
Owner

There's no built-in way to do this. I guess the easiest solution is to simply edit the code:

Just change Array(5) to Array(1) and comment out the other arguments in the concat call.

@CrowdHailer
Copy link
Author

Do you have any pointers on being able to write information to debug. as writing to standard out is no longer available

@AljoschaMeyer
Copy link
Owner

To quote the last line of the readme:

All data written by the client to stderr is written to the stderr of the test script (useful for debugging).

Let's hope I actually implemented that.

@CrowdHailer
Copy link
Author

I tried that and didn't see anything in my terminal. But there was quite a lot of test output that lead to my first question. I will try again and maybe have a poke around in the source if need be. It's along time since I've done any JS in anger but I am sure it can come back to me.

@cryptix
Copy link
Contributor

cryptix commented Mar 26, 2019

Super late to this party but for future travlers I can confirm: writing to stderr works.

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

3 participants