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

Add a launch configuration to debug currently opened test #31771

Open
maorleger opened this issue Nov 14, 2024 · 0 comments
Open

Add a launch configuration to debug currently opened test #31771

maorleger opened this issue Nov 14, 2024 · 0 comments
Assignees
Labels
EngSys This issue is impacting the engineering system.

Comments

@maorleger
Copy link
Member

Looking at the variable reference, we may be able to do something like:

   {
      "id": "filename",
      "type": "promptString",
      "description": "(Optional) Enter a part of the test file name (e.g. 'foo' will run 'foo.spec.ts', 'notfoo.spec.ts', 'test.foo.spec.ts', etc.)",
      "default": "${fileBasename}"
    }

Which will use the currently opened file as the default. Looking at the predefined variables There are ways to be smarter about it:

  1. ${relativeFile} will contain the following: <workspaceFolder>/sdk/<serviceDirectory>/<packageDirectory>/test/public/node/myTest.spec.ts (for example, if we have that file open)
  2. There are command extensions that can be used to split and manipulate that string

We can write a launch config that takes no parameters and smartly splits out the relative path and the filename and passes those in. I suggest we do that separately and I'll create an issue to look into it 👍 It's a great idea IMO

@maorleger maorleger self-assigned this Nov 14, 2024
@maorleger maorleger added Client This issue points to a problem in the data-plane of the library. and removed Client This issue points to a problem in the data-plane of the library. labels Nov 14, 2024
@github-actions github-actions bot added the needs-triage Workflow: This is a new issue that needs to be triaged to the appropriate team. label Nov 14, 2024
@maorleger maorleger added the EngSys This issue is impacting the engineering system. label Nov 14, 2024
@github-actions github-actions bot removed the needs-triage Workflow: This is a new issue that needs to be triaged to the appropriate team. label Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
EngSys This issue is impacting the engineering system.
Projects
None yet
Development

No branches or pull requests

1 participant