CTRL Coverage Tooling
- Status: open
- GitHub issue: winccoa-tools-pack/.github#39
- Last sync: 2026-06-13 06:24:12 UTC
Idea title
CTRL Coverage Tooling
Describe your idea
Vision: CTRL Coverage Tooling
Problem Statement
WinCC OA CTRL TestFramework generates code coverage data when running tests with CTRL_COVERAGE enabled. However, there's no tooling to:
- Parse and aggregate coverage data
- Generate human-readable reports (HTML, JSON, LCOV)
- Integrate with CI/CD pipelines (GitHub Actions, GitLab CI)
- Visualize coverage in VS Code
Proposed Solution
Create a new repository npm-winccoa-ctrl-coverage that provides:
Core Library (npm package)
- Parse CTRL coverage output files
- Aggregate coverage across multiple test runs
- Calculate coverage percentages (statements, functions, lines)
- Export to standard formats (LCOV, Cobertura, JSON)
CLI Tool
ctrl-coverage report- Generate HTML/text reportsctrl-coverage merge- Combine multiple coverage filesctrl-coverage check- Fail CI if coverage below threshold
VS Code Integration
- Coverage gutter indicators (green/red lines)
- Coverage summary in status bar
- Integration with
vscode-winccoa-ctrl-test-framework
Technical Considerations
- Coverage File Format: Research WinCC OA CTRL coverage output format
- Language: TypeScript (consistent with tools-pack ecosystem)
- VS Code API: Use
vscode.TestCoverageControllerfor native integration - CI Support: GitHub Actions action for coverage reporting
Related
- Enables
vscode-winccoa-ctrl-test-frameworkissue #35 (CTRL_COVERAGE flag) - Similar to istanbul/nyc for JavaScript coverage
Labels
enhancement, vision, P1