LOBSTER Tool for ISO C/C++
Project description
LOBSTER
The Lightweight Open BMW Software Traceability Evidence Report allows you to demonstrate software traceability and requirements coverage, which is essential for meeting standards such as ISO 26262.
This package contains a tool extract tracing tags from ISO C++ test code. The tracing tags are identified by searching for configurable markers in the comments above the test code.
Tools
This LOBSTER package contains only one tool, lobster-cpptest.
It can be used to extract references from C++ tests.
The most frequent use case is that, the references point to requirements.
But lobstser-cpptest is agnostic to that, and the references can point to any kind
of artefact.
The references must be given inside a comment above the test case itself.
The resulting *.lobster file will then contain a LOBSTER item per test case.
This file can be used to generate a LOBSTER report.
Configuration
The tool requires a YAML configuration file to define its settings. You must provide this file when running the tool to specify parameters to process.
Usage
This tool supports C++ code.
For this your C++ tests must have a documentation with markers:
They can either be @requirement, @requiredby or @defect.
Here is an example:
/**
* @requirement CB-#1111, CB-#2222,
* CB-#3333
* @requirement CB-#4444 CB-#5555
* CB-#6666
*/
TEST(RequirementTagTest1, RequirementsAsMultipleComments) {
// your test implementation here
}
You can also provide parameters to specify which markers should be extracted from which files. Additionally, you need to provide the Codebeamer URL.
Examples:
output:
component_tests.lobster:
markers:
- "@requirement"
kind: "req"
unit_tests.lobster:
markers:
- "@requiredby"
kind: "req"
other_tests.lobster:
markers: []
kind: ""
codebeamer_url: "https://codebeamer.com"
You can also include CPP files in the YAML configuration file.
files:
- 'path/to/source1.cpp'
- 'path/to/source2.cpp'
Note: File paths are accepted only in single quotes.
Technical Aspects
lobster-cpptest now displays a test-name instead of a fixture-name
in the lobster-report and lobster-html-report.
Known Issues
Please refer to lobster-cpptest documentation for a full list of known issues.
Copyright & License information
The copyright holder of LOBSTER is the Bayerische Motoren Werke Aktiengesellschaft (BMW AG), and LOBSTER is published under the GNU Affero General Public License, Version 3.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file bmw_lobster_tool_cpptest-0.13.2-py3-none-any.whl.
File metadata
- Download URL: bmw_lobster_tool_cpptest-0.13.2-py3-none-any.whl
- Upload date:
- Size: 12.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
da1f195b27b107e8e587371dcb7711f87a1edf63a4721466d2b30138b3425638
|
|
| MD5 |
b0a02ccd5458d64ba008de2f1b31380a
|
|
| BLAKE2b-256 |
11cf9034e812cef9db190f331b15a7b37de8585a44b08fcc3a2329432d4b0fd8
|
Provenance
The following attestation bundles were made for bmw_lobster_tool_cpptest-0.13.2-py3-none-any.whl:
Publisher:
package.yml on bmw-software-engineering/lobster
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
bmw_lobster_tool_cpptest-0.13.2-py3-none-any.whl -
Subject digest:
da1f195b27b107e8e587371dcb7711f87a1edf63a4721466d2b30138b3425638 - Sigstore transparency entry: 309589968
- Sigstore integration time:
-
Permalink:
bmw-software-engineering/lobster@b14dd8611dfb455fd5cac9723dac0c9626ddd822 -
Branch / Tag:
refs/tags/lobster-0.13.2 - Owner: https://github.com/bmw-software-engineering
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
package.yml@b14dd8611dfb455fd5cac9723dac0c9626ddd822 -
Trigger Event:
release
-
Statement type: