eclipse-tractusx / sig-release

https://eclipse-tractusx.github.io/sig-release
Apache License 2.0
9 stars 10 forks source link

[Testmanagement] TRG Code Coverage Proposal #970

Open ds-hzimmer opened 3 weeks ago

ds-hzimmer commented 3 weeks ago

Overview

Providing a Tractus-X Release Guideline (TRG) for testing code coverage

Explain the topic in 2 sentences

Providing a Tractus-X Release Guideline (TRG) for static code analysis code coverage measurements and target thresholds, using Open Source methods and tools, in order to give product teams a template and best-practice example to start from or improve.

What's the benefit?

In increased quality for testing using an efficient established method, potentially avoiding issues that would then only be found in more costly tests or not discovered at all.

What are the Risks/Dependencies ?

Detailed explanation

Current implementation

A Sonarcloud solution for Tractus-X is already available https://sonarcloud.io/organizations/eclipse-tractusx/projects But not all Tractus-X product teams have implemented or activated the code coverage functionality, and of those not all have an adequately high coverage.

Proposed improvements

Feature Team

Catena-X e.V. test management (doubleSlash, on order of the association)

Involvement of additional product teams for implementation

Contributor

Additional contributors to be determined

Committer

Additional committers to be determined

User Stories

Acceptance Criteria

Test Cases

Note: Not directly applicable as this feature suggestion describes a testing improvement itself.

Test Case 1

Steps

  1. Product team(s) implement Sonarcloud Code Coverage check in the components they are responsible for
  2. Once this integration has been completed: Both the Product Teams and Test Management/Release Management can review the Coverage quality gate for each release

Expected Result

  1. Product shows up in list of Eclipse Tractus-X projects https://sonarcloud.io/organizations/eclipse-tractusx/projects
  2. The "Coverage" value for the respective product is displayed (percentage)
  3. For a new release, "Coverage" is within/above the expected quality gate percentage threshold. If not, the team will implement new test cases to achieve code coverage (tbd if initially already within release or until subsequent release).

Architectural Relevance

Note: Some checks potentially not directly applicable as this feature suggestion describes a testing/test management improvement and not a feature change in the functionality of a product itself.

The following items are ensured (answer: yes) after this issue is implemented:

Justification: (Fill this out, if at least one of the checkboxes above cannot be ticked. Contact the Architecture Management Committee to get an approval for the justification)

Additional information

stephanbcbauer commented 1 week ago

Some hints from Release Management (@ther3sa) and Tractus-X Project Lead (@stephanbcbauer)