Skip to content
Novus Examples
json542 B

Coverage — Gate Configuration (JSON)

The threshold configuration the three boundary tracefiles in this group are meant to be judged against: global minimums, one per-path override and an explicit >= comparison. Publishing the comparison operator is the point — leaving it implicit is what makes an at-the-gate report ambiguous.

Preview — first 27 linesjson
{
  "$comment": "Gate configuration for the three boundary tracefiles in this group.",
  "coverageThreshold": {
    "global": {
      "lines": 80,
      "statements": 80,
      "functions": 75,
      "branches": 65
    },
    "src/checkout/": {
      "lines": 85
    }
  },
  "comparison": ">=",
  "failOnDecreaseFromBaselinePct": 0.5,
  "baseline": {
    "lines": 90.71,
    "branches": 70.83,
    "functions": 90.0
  },
  "reportPaths": [
    "threshold-at-gate.lcov",
    "threshold-below-gate.lcov",
    "threshold-above-gate.lcov"
  ]
}

Specifications

Seed
61200
Format
JSON
Global Line Minimum
80
Global Branch Minimum
65
Path Overrides
1
Comparison
>=
Line Endings
LF

Testing contract

Reference control
Scenario
Apply a declared coverage gate to the boundary tracefiles in this group.
Expected result
With comparison >= and a global line minimum of 80, the at-gate and above-gate tracefiles pass and the below-gate one fails.

What is a .json file?

JSON (JavaScript Object Notation) is a lightweight, text-based data-interchange format representing objects, arrays, strings, numbers, booleans, and null. It is language-independent, human-readable, and the dominant format for web APIs and configuration. It requires a single well-formed root value.

How to use this file

Use an example JSON file to test parsers and serializers, schema validation, Unicode and number-precision handling, and API request or response processing.

How to use this file for testing

“Coverage — Gate Configuration (JSON)” is a deterministic Novus Examples fixture for Config parsing, JSON parsing, Schema validation. TOML and INI configuration files with nested sections and typed values — for testing config parsers and loaders.

Documented properties for this file: seed 61200 · LF · JSON. Compare results against paired or grouped companions on this page when present (clean↔damaged, searchable↔scanned, or format twins) so scores stay reproducible across runs.

Download the file once, keep the path stable in CI or local scripts, and treat the spec table as the contract: dimensions, seeds, field lists, and roles are intentional. Corrupt or invalid samples are labelled as such — expect parsers to fail loudly rather than silently accept them.

Test and coverage reports document their totals (suites, cases, passes, failures, skips, covered lines) in the spec table. Point your CI dashboard, coverage gate, or report converter at the file and assert those counts survive; format twins carry identical numbers so a conversion can be scored exactly.

Point your config loader at the file and assert it reads the documented sections and typed values, including any deliberately-tricky nesting or comments.

Code examples

import json

with open("coverage-gate-config.json") as f:
    data = json.load(f)
print(type(data), len(data))

Generated by generation/testing.py. Free for any use, no attribution required — license.