Skip to content

vscode-test-cli not excluding files from coverage report #40

@rudyflores

Description

@rudyflores

I have the following configuration file:

/** @type {import('@vscode/test-cli').IConfigurationWithGlobalOptions} */
export default defineConfig({
  /** @type {import('@vscode/test-cli').TestConfiguration[]} */
  tests: [
    {
      files: [
        `__tests__/__integration__/out/__tests__/__integration__/**/*.test.js`,
      ],
      version: "stable",
      extensionDevelopmentPath: __dirname,
      workspaceFolder: `${__dirname}/__tests__/__integration__/resources`,
      srcDir: "./src",
    },
  ],
  /** @type {import('@vscode/test-cli').ICoverageConfiguration} */
  coverage: {
    includeAll: true,
    reporter: ["lcov", "text-summary"],
    output: `${__dirname}/__tests__/__results__/integration`,
    exclude: ["**/node_modules/**"],
  },
});

And I am unable to generate a coverage report that excludes my node_modules event though I specifically mention to exclude those in coverage.exclude any idea if i'm missing something in my configuration?

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions