Skip to content

Test explorer shows old test names that not longer exist #4341

@DFelten

Description

@DFelten

Describe the bug

The test explorer of VSCode shows old test names that not longer exist. For example, in Dart, a test is created with the name Test 1. When this is renamed to Test 2, Test 1 and Test 2 appear in the Explorer text. Test 1 can of course no longer be executed correctly.

In the example, we filtered for tests in the active file.

In the repository of VSCode it was said that the problem is with the extension: microsoft/vscode#171257

To Reproduce
Steps to reproduce the behavior:

  1. Create a with the name Test 1.
  2. Rename to Test 2
  3. Test 1 and Test 2 appear in the Explorer text.

Expected behavior
Only the new test name should appear.

Screenshots

CleanShot 2023-01-13 at 14 39 36

CleanShot 2023-01-13 at 14 39 48

Please complete the following information:

VS Code version: Code - Insiders 1.75.0-insider (243854703b7fa371abb752ec0df7817a615a308b, 2023-01-13T08:04:47.712Z)
OS version: Darwin arm64 22.2.0
Modes:
Sandboxed: Yes

System Info
Item Value
CPUs Apple M1 Max (10 x 24)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off
Load (avg) 6, 7, 7
Memory (System) 32.00GB (4.54GB free)
Process Argv --crash-reporter-id 511166e9-0c5e-4225-a6af-efd2d90c3f8d
Screen Reader no
VM 0%
Extensions (77)
Extension Author (truncated) Version
better-comments aar 3.0.2
codesnap adp 1.3.4
vscode-m3u af4 1.0.0
TabOut alb 0.2.2
Bookmarks ale 13.3.1
project-manager ale 12.7.0
flutter-snippets ale 3.0.0
toggle-excluded-files eam 1.7.0
clipboard-history Anj 1.0.7
melos-code bla 0.6.0
vscode-intelephense-client bme 1.9.3
ccs-flutter-color cir 1.0.2
gitignore cod 0.9.0
php-namespace-resolver ctf 0.4.0
vscode-mysql-client2 cwe 6.1.2
vscode-mac-color-picker dae 1.1.0
markdown-table-prettify dar 3.6.0
dart-code Dar 3.57.20230104
flutter Dar 3.56.0
vscode-markdownlint Dav 0.49.0
githistory don 0.6.19
gitlens eam 13.2.0
bloc Fel 6.6.2
mason Fel 0.1.7
flutter-coverage flu 0.0.4
shell-format fox 7.2.2
copilot Git 1.67.7944
vscode-pull-request-github Git 0.56.0
gitlab-workflow Git 3.57.3
todo-tree Gru 0.0.220
terraform has 2.25.2
json-to-dart hir 3.5.8
rest-client hum 0.25.1
monkey-patch ioc 0.1.23
pubspec-assist jer 2.3.2
shortcut-menu-bar jer 3.0.4
intellij-idea-keybindings k-- 1.5.5
indent-to-bracket LAK 1.2.2
flutter-intl loc 1.19.1
syntax-project-pbxproj mar 0.1.3
flutter-snippets Mar 1.0.5
Kotlin mat 1.7.1
rainbow-csv mec 3.5.0
git-graph mhu 1.30.0
dart-barrel-file-generator miq 5.0.0
diff-merge mos 0.7.0
vscode-docker ms- 1.23.3
vscode-language-pack-de MS- 1.75.12280910
remote-containers ms- 0.270.0
live-server ms- 0.4.4
vsliveshare-pack ms- 0.4.0
vscode-flutter-freezed-helper mth 0.1.0
sqltools mtx 0.27.1
sqltools-driver-mysql mtx 0.5.1
awesome-flutter-snippets Nas 4.0.1
vscode-yaml-sort Pas 6.0.2
vscode-versionlens pfl 1.0.12
material-icon-theme PKi 4.23.1
remove-comments pli 1.2.2
vscode-thunder-client ran 2.3.0
vscode-yaml red 1.11.0
vscode-sort-json ric 1.20.0
command-variable rio 1.46.2
flutter-riverpod-snippets rob 1.2.1
vscode-coverage-gutters rya 2.10.3
lcov-lang Ser 1.0.1
swift-lang ssw 0.10.0
freezed-model-gen Sus 1.0.1
better-search tra 0.0.6
errorlens use 3.6.0
vscode-lldb vad 1.8.1
vscode-wakatime Wak 23.1.0
vscode-todo-highlight way 1.0.5
php-debug xde 1.30.0
vscode-surround yat 1.5.0
markdown-all-in-one yzh 3.5.0
material-theme zhu 3.15.6

(3 theme extensions excluded)

A/B Experiments
vsliv695:30137379
vsins829:30139715
vsliv368cf:30146710
vsreu685:30147344
python383cf:30185419
vspor879:30202332
vspor708:30202333
vspor363:30204092
vswsl492cf:30256198
vslsvsres303:30308271
pythonvspyl392:30422396
pythontb:30258533
vsc_aa:30263845
pythonptprofiler:30281269
vshan820:30294714
pythondataviewer:30285072
vscod805cf:30301675
bridge0708:30335490
bridge0723:30353136
cmake_vspar411:30581797
vsaa593cf:30376535
pythonvs932:30404738
cppdebug:30492333
vsclangdf:30492506
c4g48928:30535728
dsvsc012cf:30540253
pynewext54:30618038
pylantcb52:30590116
pyindex848:30611229
nodejswelcome1:30587009
pyind779:30611226
pythonsymbol12cf:30622697
fim-prod:30623723

Metadata

Metadata

Assignees

No one assigned

    Labels

    in testingRelates to test execution of Dart/Flutter tests for end usersis bug

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions