Skip to content

Item that contains a ‘message’ has zero coverage#408

Merged
SurajBDeore merged 2 commits into
mainfrom
internal/coverage-message-impact
Aug 20, 2025
Merged

Item that contains a ‘message’ has zero coverage#408
SurajBDeore merged 2 commits into
mainfrom
internal/coverage-message-impact

Conversation

@SurajBDeore

@SurajBDeore SurajBDeore commented Aug 18, 2025

Copy link
Copy Markdown
Contributor

Item contains a "message" and traces to another item

  • The item with the message shall have 0% coverage.
  • The traced-to item remains at 100% coverage

- The item with the message shall have 0% coverage.
- The traced-to item remains at 100% coverage
Issue: SWF-20649
@SurajBDeore SurajBDeore requested a review from a team as a code owner August 18, 2025 12:39
@mugdhadhole1 mugdhadhole1 added the internal Affects the CI, tests or refactorings only, not relevant to the end-user label Aug 20, 2025
@SurajBDeore SurajBDeore merged commit 231fefc into main Aug 20, 2025
28 checks passed
@SurajBDeore SurajBDeore deleted the internal/coverage-message-impact branch August 20, 2025 12:11
req.System_Requirement_Aspect Message_Trace_Coverage {
description = '''
IF an item contains a "message" and traces to another item,
THEN the traced item shall have 100% coverage,

@phiwuu phiwuu Aug 30, 2025

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is wrong! The traced item may be traced by several items! If there are only two items in total, then the formulation is correct.

Furthermore:

  • it is irrelevant if the item under test traces to another item or not. If there is a message, then the item shall be counted as "not okay".
  • a single item cannot have a coverage. A coverage is allocated to a level, which consists of zero or more items.

So a system requirement can only specify that the item shall be counted as "not okay" if it has got a message. And this rule has precedence over all other traceability rules. So even if the item properly traces to another item (as requested by the tracing policy), the item must still be counted as "not okay" if it has got a message.

However, a justification has even higher priority. An item with "justification" is counted as "okay", even if it has got a "message".

@phiwuu

phiwuu commented Sep 4, 2025

Copy link
Copy Markdown
Member

Fix: #461

TannazVhdBMWExt pushed a commit that referenced this pull request Nov 6, 2025
Item contains a "message" and traces to another item
- The item with the message shall have 0% coverage.
- The traced-to item remains at 100% coverage 

Issue: SWF-20649
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

internal Affects the CI, tests or refactorings only, not relevant to the end-user

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants