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

Doesn't work with the ava test runner #20

Closed
mightyiam opened this issue Nov 12, 2016 · 7 comments
Closed

Doesn't work with the ava test runner #20

mightyiam opened this issue Nov 12, 2016 · 7 comments

Comments

@mightyiam
Copy link

https://github.com/avajs/ava

I'm using inspect ava --serial some-test-file.js.

I've just tried debugging a trivial file as a sanity check and it worked.

Perhaps ava is using child processes with the --serial option, as well...

@jaridmargolin
Copy link
Owner

After a quick review, looks like ava is using fork under the hood. There is a small chance it is possible to support child process, but its fairly hacky (see #5).

Thanks for the report.

@mightyiam
Copy link
Author

Perhaps it could be ava's job to provide an API for debugging child processes.

@mightyiam
Copy link
Author

But why stop there? Perhaps node could provide such an API.

@jaridmargolin
Copy link
Owner

Hmmm.. I don't see a clear path for ava to provide an API for this. Possibly at a lower level node would be able to expose easier hooks, but its not really clear to me.

I am going to close this particular issue. If you want to follow any progress inspect-process is capable of making, see #5.

@gillesdemey
Copy link

FWIW it works fine with AVA when running it via the profile file (and it should work with the --serial flag too)

inspect node_modules/ava/profile.js test-file.js

@mightyiam
Copy link
Author

Yup. I wrote the page:
https://github.com/avajs/ava/blob/master/docs/recipes/debugging-with-chrome-devtools.md

@jaridmargolin
Copy link
Owner

Thanks @gillesdemey @mightyiam!

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