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 reports
ctrl-coverage merge - Combine multiple coverage files
ctrl-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.TestCoverageController for native integration
- CI Support: GitHub Actions action for coverage reporting
Related
Labels
enhancement, vision, P1
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_COVERAGEenabled. However, there's no tooling to:Proposed Solution
Create a new repository
npm-winccoa-ctrl-coveragethat provides:Core Library (npm package)
CLI Tool
ctrl-coverage report- Generate HTML/text reportsctrl-coverage merge- Combine multiple coverage filesctrl-coverage check- Fail CI if coverage below thresholdVS Code Integration
vscode-winccoa-ctrl-test-frameworkTechnical Considerations
vscode.TestCoverageControllerfor native integrationRelated
vscode-winccoa-ctrl-test-frameworkissue Automate repo settings & GitFlow protections via YAML + Rulesets (main, develop, release/, hotfix/, v tags)* #35 (CTRL_COVERAGE flag)Labels
enhancement,vision,P1