Skip to content

[VISION] CTRL Coverage Tooling - npm-winccoa-ctrl-coverage #39

@mPokornyETM

Description

@mPokornyETM

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

  1. Coverage File Format: Research WinCC OA CTRL coverage output format
  2. Language: TypeScript (consistent with tools-pack ecosystem)
  3. VS Code API: Use vscode.TestCoverageController for native integration
  4. CI Support: GitHub Actions action for coverage reporting

Related

Labels

enhancement, vision, P1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions