learning_ai_invt_trdg/backend/COVERAGE_BEFORE_AFTER_2026-02-16.md

3.8 KiB

Coverage Before vs After Report

Generated: 2026-02-16

Scope

  • bytelyst-trading-bot-service
  • bytelyst-trading-dashboard-web

This report shows:

  • broad/full-scope coverage movement (coverage:full)
  • enforced 80% gated coverage status (coverage)

Broad Coverage (Before vs After)

bytelyst-trading-bot-service

Command:

  • Before: npm run coverage:integration (2026-02-15 baseline)
  • After: npm run coverage:full (2026-02-16)
Metric Before After Delta
Statements 23.99% (1795/7481) 55.68% (4499/8080) +31.69 pp
Branches 40.68% (166/408) 55.76% (629/1128) +15.08 pp
Functions 33.12% (52/157) 64.51% (160/248) +31.39 pp
Lines 23.99% (1795/7481) 55.68% (4499/8080) +31.69 pp

bytelyst-trading-dashboard-web

Command:

  • Before: npm run coverage with full include baseline run on 2026-02-15
  • After: npm run coverage:full (2026-02-16)
Metric Before After Delta
Statements 5.44% (102/1874) 90.53% (1760/1944) +85.09 pp
Branches 4.37% (92/2101) 75.61% (1619/2141) +71.24 pp
Functions 3.14% (15/477) 88.24% (443/502) +85.10 pp
Lines 5.36% (91/1697) 92.11% (1624/1763) +86.75 pp

Enforced 80% Gate Status (After)

bytelyst-trading-bot-service

Command:

  • npm run coverage

Coverage scope:

  • src/domain/tradingEnums.ts
  • src/utils/symbolMapper.ts
  • src/connectors/factory.ts
Metric Result
Statements 97.87% (92/94)
Branches 93.02% (40/43)
Functions 92.30% (12/13)
Lines 97.87% (92/94)

Gate threshold:

  • lines >=80%, statements >=80%, functions >=80%, branches >=80%

Status:

  • PASS

bytelyst-trading-dashboard-web

Command:

  • npm run coverage

Coverage scope:

  • src/lib/tradeHistoryLedger.ts
Metric Result
Statements 99.06% (106/107)
Branches 94.16% (129/137)
Functions 100% (16/16)
Lines 98.93% (93/94)

Gate threshold:

  • lines >=80%, statements >=80%, functions >=80%, branches >=80%

Status:

  • PASS

Focus Module Snapshot

bytelyst-trading-dashboard-web/src/tabs/PositionsTab.tsx

Command:

  • npm run coverage:full (2026-02-16)
Metric Result
Statements 98.61% (498/505)
Branches 78.86% (500/634)
Functions 100% (112/112)
Lines 100% (459/459)

Artifacts

  • Bot broad log: bytelyst-trading-bot-service/.tmp_coverage_full.log
  • Bot gate log: bytelyst-trading-bot-service/.tmp_coverage_gate.log
  • Bot summary: bytelyst-trading-bot-service/coverage/coverage-summary.json
  • Dashboard broad log: bytelyst-trading-dashboard-web/.tmp_coverage_full.log
  • Dashboard gate log: bytelyst-trading-dashboard-web/.tmp_coverage_gate.log
  • Dashboard summary: bytelyst-trading-dashboard-web/coverage/coverage-summary.json

Latest Refresh (2026-02-16, Cycle 6)

bytelyst-trading-bot-service

Commands:

  • npm run coverage:full
  • npm run coverage
Metric coverage:full coverage (gate)
Statements 57.05% (4738/8304) 97.87% (92/94)
Branches 55.24% (685/1240) 93.02% (40/43)
Functions 66.53% (175/263) 92.30% (12/13)
Lines 57.05% (4738/8304) 97.87% (92/94)

bytelyst-trading-dashboard-web

Commands:

  • npm run coverage:full
  • npm run coverage
Metric coverage:full coverage (gate)
Statements 90.72% (1809/1994) 97.70% (128/131)
Branches 75.40% (1662/2204) 88.75% (150/169)
Functions 88.38% (449/508) 94.44% (17/18)
Lines 92.37% (1673/1811) 100% (115/115)

Status:

  • Gate coverage checks: PASS for both repos.
  • Full-repo enterprise target (100%) remains open.