Skip to content

New tests not discovered within the current workspace without restart #310

@adityasharad

Description

@adityasharad

Describe the bug
When a new CodeQL test case/directory is added within an existing workspace, it is not visible in the Test Explorer until the workspace is closed and reopened.

To Reproduce

  1. Add a workspace folder with existing test cases, e.g. a checkout of Semmle/ql
  2. Duplicate a directory of test cases, e.g. copy ql/java/ql/test/dataflow/taint-ioutils to ql/java/ql/test/dataflow/taint-ioutils2.
  3. Go to the Test Explorer view. The new test directory is not visible in the UI, and so cannot be run on its own. However, running the tests in a parent directory will pick up the new test cases.

Expected behavior
The new test directory is visible in the Test Explorer UI, and can be run directly.

Additional context
CodeQL for VS Code 1.1.1, Test Explorer UI 2.17.0, VS Code 1.42.1.

Metadata

Metadata

Assignees

Labels

VSCodebugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions