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

Closes #1092: Add launch configuration for debugging tests #1115

Merged

Conversation

manekenpix
Copy link
Member

@manekenpix manekenpix commented Sep 1, 2020

Issue This PR Addresses

Closes #1092

Type of Change

  • Bugfix: Change which fixes an issue
  • New Feature: Change which adds functionality
  • Documentation Update: Change which improves documentation
  • UI: Change which improves UI

Description

This modifies launch.json to include test debugging. With the new settings, it's possible to choose between running and debugging one test (the one opened in the editor) or all of them (run sequentially like when running npm run test".

Note:
Running tests using VSCode debugger shows an illegal access error after completing all the tests.
More specifically:

node::inspector::Agent::ToggleAsyncHook Cannot toggle Inspector's AsyncHook, please report this.

This is a nodejs error, and according to their repo, it'll be fix in the next release this month (September 2020).
More info about this issue here.

Checklist

  • Quality: This PR builds and passes our npm test and works locally
  • Tests: This PR includes thorough tests or an explanation of why it does not
  • Screenshots: This PR includes screenshots or GIFs of the changes made or an explanation of why it does not (if applicable)
  • Documentation: This PR includes updated/added documentation to user exposed functionality or configuration variables are added/changed or an explanation of why it does not(if applicable)

@manekenpix manekenpix merged commit 0d65f38 into Seneca-CDOT:master Sep 21, 2020
@manekenpix manekenpix deleted the issues/1092-conf-debugging-tests branch September 21, 2020 21:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
developer experience Helping the Developer Experience type: enhancement New feature or request type: test Creation and development of test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add launch configuration for debugging tests
3 participants