Process Requirements#
Linking Requirements to Tests
|
status: valid
|
||||
For linking test suites to requirements following metadata shall be used. Each field may contain multiple comma-separated values from the applicable levels below:
PartiallyVerifies expresses that the test covers some part of the linked requirement. Both PartiallyVerifies and FullyVerifies may link a test to multiple requirements. FullyVerifies identifies the requirements whose complete coverage is declared by this test. If RequiredForFullyVerifying is absent, this test alone fully covers each linked requirement. If RequiredForFullyVerifying is present, this test is the anchor test, and the anchor test together with all tests identified in RequiredForFullyVerifying collectively fully cover each linked requirement. The anchor test shall list the unique identifiers (see Test Specification Guideline) of all additionally required tests. Each listed test shall link to every requirement listed in the anchor test’s FullyVerifies, via PartiallyVerifies or FullyVerifies. The anchor test is only the owner of this declaration. Neither FullyVerifies nor RequiredForFullyVerifying imply any execution result. The aggregated verdict is derived on build as defined in Fully Verified Requirement .... More information can be found in the Verification Guideline, Verification Concept, and Test Specification Guideline . |
|||||
Linking Requirements to Tests (C++)
|
status: valid
|
||||
For linking C++ tests to requirements record properties shall be used. Attributes which are common for all test cases can be specified in the Setup Function (SetUp()), the other attributes which are specific for each test case need to be specified within the test case: A more detailed description of how to link code to requirements looks like is available in the C++ Properties Template |
|||||
Linking Requirements to Tests (Python)
|
status: valid
|
||||
For linking python tests to requirements metadata shall be used. For this the ‘add_test_properties’ decorator has been provided. You need to add it to the test and fill out:
For allowed values for test_type & derivation_technique please check Linking Requirements to Tests Further more, this decorator will also check if your test has a docstring which should act as the description of the test. A more detailed description of how to link code to requirements looks like is available in the Python Properties Template |
|||||
Linking Requirements to Tests (Rust)
|
status: valid
|
||||
For linking Rust tests to requirements #[record_property] shall be used: A more detailed description of how to link code to requirements looks like is available in the Rust Properties Template |
|||||
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
|
||||
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
|
||||
The tool automation shall automatically archive the Verification reports for releases. The reports are generated according to Verification Reporting. |
|||||
Verification Documentation Checks
|
status: valid
|
||||
The following checks shall be implemented on test metadata:
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:
The minimum link coverage shall also be enforced:
|
|||||
Verification Link Status Check
|
status: valid
|
||||
It shall be checked that every test with PartiallyVerifies or FullyVerifies links to at least one valid requirement or architectural element (status == valid). This applies to all tests, independent of whether they are executed or skipped. A finding of this check shall fail the documentation build. Additional links to invalid requirements or architectural elements shall be reported as a warning. Note: A test which only verifies invalid requirements or architectural elements provides no verification evidence and is either obsolete or has to be linked to the successor. If a requirement is withdrawn (status invalid), the test links to it are removed or redirected in the same pull request (see Requirement invalidation). If a requirement is only replaced from a release onwards (valid_until), it stays valid and the test links stay, as the test is still evidence for the earlier releases. They are removed together with the requirement when it is deleted from the main branch (see Requirement release scope). Skipped tests do not count towards coverage (see Verification Guideline). |
|||||
Verification Documentation Checks Extended
|
status: valid
|
||||
The following checks shall be implemented on test metadata:
|
|||||
Fully Verified Requirement Verdict
|
status: valid
|
||||
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 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
|
||||
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
|
||||
Static code analysis findings shall be classified according to the following categories:
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
|
||||
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. |
|||||