Skip to content

codecov: dedicated 'javascript' flag (lcov upload from node:test coverage) #367

Closed

Description

@thomas-stegemann

Follow-up to #356. JS tests now gate CI (node --test over wwwroot-js) and JS coverage is runnable locally (npm run test:js:coverage / node --test --experimental-test-coverage), but it isn't uploaded to Codecov yet.

Blocker: Codecov's ignore is global, and src/**/wwwroot/** must stay ignored so the C# Cobertura report isn't tanked by ~72k uncovered JS lines the C# tool can't cover. A JS lcov upload under a separate javascript flag needs the per-flag scoping so the global ignore doesn't also hide it.

Scope:

  • CI: run node --test --experimental-test-coverage --test-reporter=lcov --test-reporter-destination=coverage/js-lcov.info …
  • Upload with codecov/codecov-action flags: javascript
  • codecov.yml: a javascript flag config with its own (non-ignored) paths, no gate initially
  • Result: JS coverage % visible in the Codecov UI as its own flag, separate from the C# number

Refs: #356 (harness + CI gate this builds on).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    • Status
      Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions