Skip to content

[Feature] Please Add Code Coverage Option Flag In PlaywrightConfig.ts similar to we have in VTest unitesting framework in nodejs #36223

Open
@KAjayGoutham

Description

@KAjayGoutham

Please Add Code Coverage Option Flag In PlaywrightConfig.ts similar to we have in VTest unitesting framework

Example
import { defineConfig } from 'vitest/config'

export default defineConfig({
test: {
globals: true,
environment: 'jsdom',
coverage: {
provider: 'v8', // or 'istanbul'
reporter: ['text', 'json', 'html'],
reportsDirectory: './coverage',
include: ['src/
'],
exclude: ['src//*.d.ts', 'src//*.{test,spec}.{ts,tsx}'],**
thresholds: {
lines: 80,
functions: 80,
branches: 70,
statements: 80,
},
},
},
})

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions