Process Requirements#

Multiple derivation techniques in testing
status: valid

It shall be possible to use multiple derivation techniques as one property within a single test case

Independence
status: valid

The approver of a pull request shall differ from the author(s) of the pull request in all pull requests.

Verification Reporting
status: valid
tags: prio_1_automation, verification, verification
bazel_module: score_process_description
version: 1

The tool automation shall automatically generate the Verification reports. These may be independent documents (i.e. not integrated into docs-as-code based repositories). The reports shall use Platform Verification Repor... and Module Verification Report .... The content of the reports is specified in Platform Verification Report and Module Verification Report. The execution results of test cases are marked with a clear pass/fail result.

Verification Report Archiving
status: valid
tags: prio_1_automation, verification, verification
bazel_module: score_process_description
version: 1

The tool automation shall automatically archive the Verification reports for releases. The reports are generated according to Verification Reporting.

Verification Documentation Checks
status: valid
tags: prio_1_automation, verification, verification
bazel_module: score_process_description
version: 3

The following checks shall be implemented on test metadata:

  • TestType and DerivationTechnique shall be set

  • Description shall not be empty

  • RequiredForFullyVerifying shall only be used together with FullyVerifies

  • Every test ID listed in RequiredForFullyVerifying shall identify an existing test

  • Every listed test shall link to each requirement in the anchor test’s FullyVerifies, via PartiallyVerifies or FullyVerifies

The tool automation shall report violations of these RequiredForFullyVerifying checks, identifying the field and, where applicable, the missing test ID or requirement link.

The test level is determined by the test’s location as configured for the tooling (e.g. per repository and folder), so that tests of one level can reside in different repositories (e.g. feature repository or reference integration). Verifies links shall use only the allowed types for that level. The following folder structure is the default:

  • platform_integration_tests/ (Platform): stkh_req

  • score/tests/ in the feature repository (Feature) or feature_integration_tests/ in the reference integration repository : feat, feat_req, feat_arc_dyn, feat_arc_sta, mod, mod_view_dyn, mod_view_sta, tool_req

  • score/.*/tests/ (Component): comp, comp_req, comp_arc_dyn, comp_arc_sta, real_arc_int, real_arc_int_op

  • Anything else (Unit): comp_req, feat_req (units have no requirements of their own, but unit tests can verify component or feature requirements)

The minimum link coverage shall also be enforced:

  • Platform Integration Tests shall link to at least one stakeholder requirement.

  • If Partially/FullyVerifies are set in a Feature Integration Test, these shall use one or more allowed Feature links. At least one link is required; requirements and architecture links are equally allowed, and either or both may be used.

  • If Partially/FullyVerifies are set in a Component Integration Test, these shall use one or more allowed Component links.

  • If Partially/FullyVerifies are set in a Unit Test, these shall use one or more allowed Unit links.

Verification Documentation Checks Extended
status: valid
tags: verification, verification
bazel_module: score_process_description
version: 1

The following checks shall be implemented on test metadata:

  • If TestType is set to requirements-based then PartiallyVerifies or FullyVerifies shall contain a link to at least one requirement

  • If TestType is set to interface-test then PartiallyVerifies or FullyVerifies shall contain a link to at least one interface

Fully Verified Requirement Verdict
status: valid
tags: prio_1_automation, verification, verification
bazel_module: score_process_description
version: 1

At every build, the tool automation shall derive whether each requirement is fully verified, including those with no FullyVerifies link (to detect also potential removal of linked test cases). It shall also derive the verdict for every other element linked via FullyVerifies. Each FullyVerifies link represents a full coverage claim for the linked element. Its test set consists of the declaring test and any tests listed in RequiredForFullyVerifying.

An element is fully verified only if it has at least one full coverage claim and every claim meets the following conditions:

  • the anchor test and all tests listed in its RequiredForFullyVerifying exist

  • AND the claim passes the RequiredForFullyVerifying checks in Verification Documentation ...

  • AND the anchor is valid for the current version of the element, i.e. neither the declaring test nor a required test is suspicious (see Requirement check: suspicious)

  • AND the declaring test and every required test have the execution result passed.

The derived verdict shall be used to set the requirement attribute defined in Requirement attribute: comp... to YES if the requirement is fully verified and to NO otherwise. Without a FullyVerifies declaration, it shall be set to NO, including after the final declaration is removed. No manual update of the attribute shall be required. An invalid declaration shall not result in testcovered=YES for any requirement declared by it. A failed, skipped or not executed test in any declared set results in testcovered=NO, even if another declared set passes. The declarations still record the intended complete test sets (skipped and not executed tests are additionally handled according to Verification Guideline).

Verification of External Components AoUs
status: valid
tags: prio_2_automation, verification, verification
bazel_module: score_process_description
version: 1

External components AoUs shall be verified by integration tests or static analysis tooling.

Note1: These external components AoU need to be checked generally for the complete platform, so we create a process automation requirement for this.

Note2: One example would be the checking if safety components are only using “safe” functions of the operating system.

Static Code Analysis Classification
status: valid
tags: prio_2_automation, verification, verification
bazel_module: score_process_description
version: 1

Static code analysis findings shall be classified according to the following categories:

  • Critical

  • High

  • Medium

  • Low

The actual classification shall be either provided by the tool as a suggestion or defined manually by Quality Manager together with Committer.

Alternative rating like class A, B, C, D or 1, 2, 3, 4 can be used as well, but the principle mapping to the above categories shall be preserved and documented.

CI reference integration execution
status: valid
tags: prio_2_automation, verification, verification
bazel_module: score_process_description
version: 1

The CI reference integration execution shall be triggered on regular basis to guarantee the inter-operation of all integrated components when a new component is added to the system or an existing component is updated via a PR.

TODO: Align this to the ongoing work in `PR #190 <https://github.com/eclipse-score/reference_integration/pull/190>`_ which reworks the CI reference integration execution.