@plugjs/cov8 0.7.13 → 0.7.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/SKILL.md ADDED
@@ -0,0 +1,245 @@
1
+ ---
2
+ name: cov8
3
+ description: Collect and analyse Node.js V8 test coverage with @plugjs/cov8, configure coverage thresholds and reports, and integrate coverage into a Plug build file. Use for consuming cov8 in JavaScript or TypeScript projects.
4
+ ---
5
+
6
+ # Use cov8
7
+
8
+ Use the project's existing test runner. cov8 collects or reads Node.js V8 coverage,
9
+ analyses the selected original source files, checks thresholds, and optionally
10
+ writes an HTML report. It does not supply a test framework.
11
+
12
+ Choose the CLI for a standalone command or package script. Use the Plug API when
13
+ the project already has a Plug build or needs separate per-file thresholds or
14
+ source-map bias settings. Preserve the user's source selection and thresholds;
15
+ do not lower thresholds or add ignores merely to make a build pass.
16
+
17
+ ## Setup
18
+
19
+ Use Node.js 22.16.0 or newer. Install cov8 and its Plug peer dependency with the
20
+ project's package manager; for npm:
21
+
22
+ ```sh
23
+ npm install --save-dev @plugjs/cov8 @plugjs/plug
24
+ ```
25
+
26
+ Keep the packages compatible with cov8's declared peer dependency. Existing
27
+ projects should retain their package-manager and lockfile conventions.
28
+
29
+ ## Command line
30
+
31
+ Put cov8 options before the command. Everything after the first positional
32
+ argument is the command and its arguments; `--` makes that boundary explicit.
33
+
34
+ Run Node's test runner, print uncovered lines, and generate a report:
35
+
36
+ ```sh
37
+ npx cov8 --lines --report-dir coverage -- node --test
38
+ ```
39
+
40
+ Replace `node --test` with the project's actual test command, such as `npm test`.
41
+ Without `--coverage-dir`, cov8 collects raw data in a temporary directory and
42
+ removes it afterward. Report files in `--report-dir` remain available.
43
+
44
+ Select TypeScript sources and require at least 80% coverage:
45
+
46
+ ```sh
47
+ npx cov8 --source-dir src --sources '**/*.ts' --minimum 80 --optimal 95 --lines --report-dir coverage -- node --test
48
+ ```
49
+
50
+ Quote globs so the shell does not expand them. Use one `--sources` option; repeated
51
+ occurrences are not reliably handled. Select application sources, not test files
52
+ or generated JavaScript when the intended report is for original TypeScript.
53
+
54
+ | Option | Meaning |
55
+ | -------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- |
56
+ | `-c`, `--coverage-dir DIR` | Read raw V8 coverage here; also collect into this directory when running a command. |
57
+ | `-r`, `--report-dir DIR` | Write `index.html`, `report.js`, and `report.json`. Omit for console output only. |
58
+ | `-d`, `--source-dir DIR` | Directory containing sources; defaults to `src`. |
59
+ | `-s`, `--sources GLOB` | Source-selection glob, relative to the source directory. |
60
+ | `-m`, `--minimum NUMBER` | Overall minimum percentage; the CLI also uses this as the per-file minimum. Defaults to 50. |
61
+ | `-o`, `--optimal NUMBER` | Overall warning threshold; defaults to the rounded midpoint of the overall minimum and 100. Does not override the per-file optimum. |
62
+ | `-l`, `--lines` | Print nonempty uncovered-line lists as consecutive ranges. Defaults to false; `--no-lines` disables it. |
63
+ | `-h`, `--help` | Show usage. |
64
+ | `--version` | Show the package version. |
65
+
66
+ The default glob selects `.js`, `.cjs`, `.mjs`, `.ts`, `.cts`, and `.mts` files.
67
+ The CLI excludes `.d.ts`, `.d.cts`, and `.d.mts` files. JSX/TSX is not supported by
68
+ the current parser configuration. `LOG_LEVEL` controls logging, defaulting to
69
+ `notice`.
70
+
71
+ `--force-esm` and `--force-cjs` configure the bundled TypeScript loader's `.ts`
72
+ module format. These are not coverage settings and do not replace the test runner's
73
+ own configuration.
74
+
75
+ ### Analyse existing coverage
76
+
77
+ With no command, `--coverage-dir` is required:
78
+
79
+ ```sh
80
+ npx cov8 --coverage-dir .coverage-data --source-dir src --lines --report-dir coverage
81
+ ```
82
+
83
+ The directory must contain Node.js `coverage-*.json` files, not an Istanbul/nyc JSON
84
+ report or LCOV file. For example, collect data separately in a POSIX shell:
85
+
86
+ ```sh
87
+ NODE_V8_COVERAGE=.coverage-data node --test
88
+ ```
89
+
90
+ Use a fresh directory for each independent run. cov8 combines all supplied coverage
91
+ files, including older files left in an explicitly selected directory. A dedicated
92
+ directory may be deliberately shared by several test commands whose coverage should
93
+ be combined.
94
+
95
+ ### Exit status
96
+
97
+ Below-minimum overall or per-file coverage fails the command. Below-optimum coverage
98
+ warns without failing. A failing child command also fails cov8; analysis is not run
99
+ after that failure. Missing raw coverage files fail analysis. Empty source selections
100
+ can produce a warning instead of failure, so verify that the report lists the intended
101
+ files rather than treating exit status alone as proof of coverage.
102
+
103
+ ## Plug build integration
104
+
105
+ Import `@plugjs/cov8` for its registration side effect before using `.coverage()`.
106
+ Pass the original source file set into the pipe; pass the raw coverage directory as
107
+ the first argument. The pipe analyses existing data—it does not execute tests.
108
+
109
+ Example `build.ts`, using Node's test runner:
110
+
111
+ ```ts
112
+ import '@plugjs/cov8'
113
+ import { exec, find, plugjs, rmrf } from '@plugjs/plug'
114
+
115
+ const coverageDir = '.coverage-data'
116
+
117
+ export default plugjs({
118
+ async test() {
119
+ // This directory is dedicated to disposable raw coverage for this build.
120
+ await rmrf(coverageDir)
121
+ await exec(process.execPath, '--test', { coverageDir })
122
+ },
123
+
124
+ async coverage() {
125
+ await this.test()
126
+
127
+ return await find('**/*.([cm])?[jt]s', {
128
+ directory: 'src',
129
+ ignore: '**/*.d.([cm])?ts',
130
+ }).coverage(coverageDir, {
131
+ reportDir: 'coverage',
132
+ minimumCoverage: 80,
133
+ optimalCoverage: 95,
134
+ minimumFileCoverage: 70,
135
+ optimalFileCoverage: 90,
136
+ reportUncoveredLines: true,
137
+ })
138
+ },
139
+ })
140
+ ```
141
+
142
+ Run it from the consumer project's root:
143
+
144
+ ```sh
145
+ npx plug coverage
146
+ ```
147
+
148
+ Adapt the `test` task to the existing runner and task structure. Plug's `exec`
149
+ option `coverageDir` sets `NODE_V8_COVERAGE` for the child. When combining multiple
150
+ test commands, clear the dedicated directory once before the first command, not
151
+ between commands. Do not use cov8's own monorepo test commands in a consumer project.
152
+
153
+ ### Explicit plug construction
154
+
155
+ An alternative to registering the pipe method is importing the class directly:
156
+
157
+ ```ts
158
+ import { find } from '@plugjs/plug'
159
+ import { Coverage } from '@plugjs/cov8/coverage'
160
+
161
+ // Inside a Plug task, after tests have populated .coverage-data:
162
+ await find('**/*.ts', { directory: 'src', ignore: '**/*.d.ts' })
163
+ .plug(new Coverage('.coverage-data', {
164
+ reportDir: 'coverage',
165
+ reportUncoveredLines: true,
166
+ }))
167
+ ```
168
+
169
+ Do not use private `src/` or `dist/` import paths. The supported entry points are
170
+ `@plugjs/cov8` and `@plugjs/cov8/coverage`.
171
+
172
+ ### API options and return values
173
+
174
+ | Option | Default / behavior |
175
+ | ---------------------- | -------------------------------------------------------------------------- |
176
+ | `minimumCoverage` | Overall minimum, 50%. |
177
+ | `minimumFileCoverage` | Per-file minimum; inherits `minimumCoverage`. |
178
+ | `optimalCoverage` | `Math.round((100 + minimumCoverage) / 2)`, normally 75%. |
179
+ | `optimalFileCoverage` | `Math.round((100 + minimumFileCoverage) / 2)`, normally 75%. |
180
+ | `reportUncoveredLines` | `false`. Enables uncovered-line ranges in console reporting. |
181
+ | `sourceMapBias` | `'least_upper_bound'`; also accepts `'greatest_lower_bound'` and `'none'`. |
182
+ | `reportDir` | Omitted by default. Enables report files when supplied. |
183
+
184
+ Without `reportDir`, awaiting `.coverage()` yields `undefined`. With `reportDir`,
185
+ the method returns a `Pipe` containing the generated report files, which can be
186
+ chained or awaited. `CoverageOptions` and `CoverageReportOptions` are exported types.
187
+
188
+ Use the API for separate per-file thresholds and `sourceMapBias`: the CLI has no
189
+ flags for those options. Keep the default source-map bias unless there is a concrete
190
+ mapping issue to investigate. `'none'` requires exact mappings and sums counts from
191
+ all generated locations mapped to the same original position.
192
+
193
+ ## Interpret and inspect reports
194
+
195
+ cov8 percentages measure AST nodes, not lines, statements, or branches in the
196
+ Istanbul sense. The percentage is rounded down. Skipped syntax is excluded; explicitly
197
+ ignored nodes are excluded from the denominator. Empty or entirely skipped/ignored
198
+ files report `n/a`, represented as `null` in JSON.
199
+
200
+ - Open `coverage/index.html`; keep its companion `report.js` alongside it.
201
+ - Use `report.json` for automation. It contains `results` keyed by absolute source
202
+ path, aggregate `nodes`, `thresholds`, and a generation `date`.
203
+ - Each file result contains `code`, `codeCoverage`, `nodeCoverage`, and
204
+ `uncoveredLines`. Line numbers are unique, one-based, and ascending; a partially
205
+ uncovered line is included.
206
+ - Character coverage uses UTF-16 offsets: `-2` means skipped, `-1` ignored, `0`
207
+ uncovered, and positive values are execution counts assigned from AST nodes.
208
+
209
+ For transpiled TypeScript, collect coverage from the executed JavaScript while
210
+ selecting the original TypeScript sources. Preserve source maps and source files
211
+ until analysis finishes; a TypeScript compiler can emit maps with `sourceMap: true`
212
+ or `inlineSourceMap: true`. Missing maps can prevent original-source matching even
213
+ though direct JavaScript coverage is available.
214
+
215
+ ## Intentional exclusions
216
+
217
+ Use ignores only for code deliberately excluded from coverage requirements. Both
218
+ `coverage ignore` and `istanbul ignore` spellings are recognized.
219
+
220
+ ```ts
221
+ /* coverage ignore next */
222
+ function platformFallback() {
223
+ throw new Error('Unavailable on this platform')
224
+ }
225
+ ```
226
+
227
+ `next` applies to the following node/subtree; `prev` is a trailing comment on the
228
+ preceding node. Put `file` before the first statement or directive, including before
229
+ `"use strict"`. Leading comments on an `if` support `test`, `if`, and `else`; leading
230
+ comments on a `try` support `try`, `catch`, and `finally` to ignore the corresponding
231
+ part. For example:
232
+
233
+ ```ts
234
+ /* coverage ignore else */
235
+ if (supported) {
236
+ run()
237
+ } else {
238
+ platformFallback()
239
+ }
240
+ ```
241
+
242
+ Prefer declaration-level `import type` and `export type`: specifier-level forms such
243
+ as `import { type Foo }` are not fully excluded by this analyser. Use LF or CRLF line
244
+ endings; other JavaScript line terminators are not reliably handled. Do not silently
245
+ rewrite these constructs or add ignores when reporting a coverage discrepancy.
@@ -1,20 +1,20 @@
1
1
  import type { Logger } from '@plugjs/plug/logging';
2
2
  import type { AbsolutePath } from '@plugjs/plug/paths';
3
3
  import type { RawSourceMap } from 'source-map';
4
- /** Coverage range */
4
+ /** Coverage range. */
5
5
  export interface V8CoveredRange {
6
- /** The offset in the script of the first character covered */
6
+ /** The inclusive start offset of the range, in UTF-16 code units. */
7
7
  startOffset: number;
8
- /** The offset (exclusive) in the script of the last character covered */
8
+ /** The exclusive end offset of the range, in UTF-16 code units. */
9
9
  endOffset: number;
10
- /** The number of times the specified offset was covered */
10
+ /** The execution count for this range. */
11
11
  count: number;
12
12
  }
13
- /** Coverage report per function as invoked by Node */
13
+ /** Per-function coverage reported by V8. */
14
14
  export interface V8CoveredFunction {
15
- /** The name of the function being covered */
15
+ /** The name of the function being covered. */
16
16
  functionName: string;
17
- /** A flag indicating whether fine-grained (precise) coverage is available */
17
+ /** Whether the ranges include block-level coverage. */
18
18
  isBlockCoverage: boolean;
19
19
  /**
20
20
  * The ranges covered.
@@ -23,82 +23,89 @@ export interface V8CoveredFunction {
23
23
  */
24
24
  ranges: V8CoveredRange[];
25
25
  }
26
- /** Coverage result for a particlar script as seen by Node */
26
+ /** Coverage for a script as recorded by Node.js. */
27
27
  export interface V8CoverageResult {
28
- /** The script ID, uniquely identifying the script within the Node process */
28
+ /** The script ID, uniquely identifying the script within the Node process. */
29
29
  scriptId: string;
30
- /** The URL of the script (might not be unique, if the script is loaded multiple times) */
30
+ /** The URL of the script (might not be unique, if the script is loaded multiple times). */
31
31
  url: string;
32
- /** Per-function report of coverage */
32
+ /** Per-function report of coverage. */
33
33
  functions: V8CoveredFunction[];
34
34
  }
35
- /** Cached source map for a coverage result */
35
+ /** Cached source map for a coverage result. */
36
36
  export interface V8SourceMapCache {
37
- /** The line lengths (sans EOL) in the transpiled code */
37
+ /** Line lengths in the generated code, as cached by Node.js. */
38
38
  lineLengths: number[];
39
- /** The source map associated with the transpiled code */
39
+ /** The source map associated with the transpiled code. */
40
40
  data: RawSourceMap | null;
41
- /** The url (if any) of the sourcemap, for resolving relative paths */
41
+ /** The source-map URL, or null for an inline source map. */
42
42
  url: string | null;
43
43
  }
44
- /** The RAW coverage data as emitted by Node, parsed from JSON */
44
+ /** Coverage data emitted by Node.js and parsed from JSON. */
45
45
  export interface V8CoverageData {
46
- /**
47
- * Coverage results, per script.
48
- *
49
- * The first element in the array describes the coverage for the whole script.
50
- */
46
+ /** Coverage results, with one entry per recorded script. */
51
47
  'result': V8CoverageResult[];
52
- /** Timestamp when coverage was taken */
48
+ /** Timestamp when coverage was taken. */
53
49
  'timestamp'?: number;
54
- /** Source maps caches keyed by `result[?].url` */
50
+ /** Source-map cache entries keyed by script URL. */
55
51
  'source-map-cache'?: Record<string, V8SourceMapCache>;
56
52
  }
57
53
  /**
58
- * The bias for source map analisys (defaults to `least_upper_bound`).
54
+ * Bias for mapping original source positions to generated code.
59
55
  *
60
- * We use `least_upper_bound` here, as it's the _opposite_ of the default
61
- * `greatest_lower_bound`, and we _reverse_ the lookup of the sourcemaps (from
62
- * source code to generated code).
56
+ * The Coverage plug defaults to `least_upper_bound`. Passing `undefined`
57
+ * directly to createAnalyser leaves the source-map library's default in effect.
58
+ * Use `none` to require exact original positions and sum the execution counts
59
+ * of all generated locations mapped to each position.
63
60
  */
64
61
  export type SourceMapBias = 'greatest_lower_bound' | 'least_upper_bound' | 'none' | undefined;
65
- /** Interface providing coverage data */
62
+ /** Interface providing coverage data. */
66
63
  export interface CoverageAnalyser {
67
- /** Return the number of coverage passes for the given location */
64
+ /** Return the execution count for a source URL, one-based line, and zero-based column. */
68
65
  coverage(source: string, line: number, column: number): number;
69
- /** Destroy this instance */
66
+ /**
67
+ * Whether a source URL has an exact mapping at the given one-based line and
68
+ * zero-based column, regardless of execution count. Direct script analysers
69
+ * treat every position in their source as mapped.
70
+ */
71
+ hasMapping(source: string, line: number, column: number): boolean;
72
+ /** Release resources held by this analyser. */
70
73
  destroy(): void;
71
74
  }
72
- /** Basic abstract class implementing the {@link CoverageAnalyser} class */
75
+ /** Base class for coverage analysers with asynchronous initialization. */
73
76
  declare abstract class CoverageAnalyserImpl implements CoverageAnalyser {
74
77
  protected readonly _log: Logger;
75
78
  constructor(_log: Logger);
76
79
  abstract init(): Promise<this>;
77
80
  abstract destroy(): void;
78
81
  abstract coverage(source: string, line: number, column: number): number;
82
+ abstract hasMapping(source: string, line: number, column: number): boolean;
79
83
  }
80
- /** Associate one or more {@link CoverageAnalyser} with different sources */
84
+ /** Associate requested source URLs with analysers and their recorded source URLs. */
81
85
  export declare class SourcesCoverageAnalyser extends CoverageAnalyserImpl {
82
86
  private readonly _filename;
83
87
  private readonly _mappings;
88
+ private readonly _analysers;
84
89
  constructor(log: Logger, _filename: AbsolutePath);
85
90
  hasMappings(): boolean;
86
- add(source: string, analyser: CoverageAnalyserImpl): void;
91
+ add(source: string, analyser: CoverageAnalyserImpl, mappedSource?: string): void;
87
92
  init(): Promise<this>;
88
93
  destroy(): void;
89
94
  coverage(source: string, line: number, column: number): number;
95
+ hasMapping(source: string, line: number, column: number): boolean;
90
96
  }
91
- /** Combine multiple {@link CoverageAnalyser} instances together */
97
+ /** Combine multiple {@link CoverageAnalyser} instances together. */
92
98
  export declare class CombiningCoverageAnalyser extends CoverageAnalyserImpl {
93
99
  private readonly _analysers;
94
100
  add(analyser: CoverageAnalyserImpl): void;
95
101
  init(): Promise<this>;
96
102
  destroy(): void;
97
103
  coverage(source: string, line: number, column: number): number;
104
+ hasMapping(source: string, line: number, column: number): boolean;
98
105
  }
99
106
  /**
100
- * Analyse coverage for the specified source files, using the data from the
101
- * specified coverage files and produce a {@link CoverageReport}.
107
+ * Create and initialize an analyser for the requested sources using the supplied
108
+ * V8 coverage files. The caller must destroy the analyser when finished.
102
109
  */
103
110
  export declare function createAnalyser(sourceFiles: AbsolutePath[], coverageFiles: AbsolutePath[], sourceMapBias: SourceMapBias, log: Logger): Promise<CoverageAnalyser>;
104
111
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"analysis.d.ts","sourceRoot":"","sources":["../src/analysis.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAA;AAClD,OAAO,KAAK,EAAE,YAAY,EAA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