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

[VSCode] - Test result not found. #281

Closed
6 tasks done
unickq opened this issue Mar 7, 2024 · 4 comments
Closed
6 tasks done

[VSCode] - Test result not found. #281

unickq opened this issue Mar 7, 2024 · 4 comments

Comments

@unickq
Copy link

unickq commented Mar 7, 2024

Describe the bug

I read through all comments of #47 but still can't make it work.

  • npx vitest work
  • running with VSCode - does not

image

Reproduction

vitest.config.mts

import { defineConfig } from "vitest/config";

export default defineConfig({
  test: {
    globals: true,
    include: ["api/**/*.spec.ts"],
    reporters: ["basic", "junit"],
    outputFile: { junit: "junit-report/api-report.xml" },
    globalSetup: ["./api/getToken.ts"],
  },
});

.vscode/settings.json

{
  "vitest.commandLine": "npx vitest"
}

System Info

vitest - 1.3.1
vitest extension - v0.4.0
node - 18
vscode - 1.87


  System:
    OS: macOS 14.3.1
    CPU: (8) arm64 Apple M2
    Memory: 201.14 MB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 18.19.1 - ~/.volta/tools/image/node/18.19.1/bin/node
    npm: 10.4.0 - ~/.volta/tools/image/npm/10.4.0/bin/npm
    pnpm: 8.15.1 - ~/Library/pnpm/pnpm
    bun: 1.0.4 - ~/.bun/bin/bun
  Browsers:
    Brave Browser: 120.1.61.114
    Chrome: 122.0.6261.94
    Edge: 122.0.2365.63
    Safari: 17.3.1
  npmPackages:
    vitest: ^1.3.1 => 1.3.1

Used Package Manager

npm

Validations

@hi-ogawa hi-ogawa transferred this issue from vitest-dev/vitest Mar 7, 2024
@hi-ogawa
Copy link
Contributor

hi-ogawa commented Mar 7, 2024

I'm guessing that "dynamic" test title such as describe.concurrent(`POST ${uri}`, ...) is not working currently.

@keroxp
Copy link
Contributor

keroxp commented Mar 8, 2024

Possibly it could be replaced with wild card regexp. It seems to be stored raw expression literal internally.

@sheremet-va
Copy link
Member

This should be fixed in #253 as it uses resolved test names

@sheremet-va
Copy link
Member

This is now fixed in pre-release 0.5.0 and higher. Note that the extension now requires Vitest 1.4.0 or higher.

@github-actions github-actions bot locked and limited conversation to collaborators Mar 30, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants