-
Notifications
You must be signed in to change notification settings - Fork 3
Requirements Gateway InstaCoverage integration
Prerequisites:
- Installed Requirements Gateway
- Installed InstaCoverage
- Annotated requirement specification (e.g. Specification document)
- Annotated LabVIEW code
- Annotated InstaCoverage unit tests
- Requirements Gateway custom type for InstaCoverage requirement binding (InstaCoverage_instacov.types)
1. Set up InstaCoverage for RG
Copy InstaCoverage_instacov.types to "*...\National Instruments\Requirements Gateway 2018\config\images*"
Copy InstaCoverage.png to "*...\National Instruments\Requirements Gateway 2018\config\types\test*"
After copying you must restart the RG to load the new custom type.
If you did everything well, you will see the following in the Configuration window:
2. Configure Specification and Implementation (LV code)
The picture shows the syntax RG expects in our example (see VI description field):
3. Annotate InstaCoverage unit tests for RG
The picture shows the syntax RG expects in our example (see Requirements field):
Note: alternatively, you can use the Comment field to define the Covers tag.
4. Configure InstaCoverage unit tests for RG
Now you can add the .instacov files in RG. If you have more, you have to connect the wires together to allow RG to calculate the full coverage.
5. Generate and display RG coverage report
Sample project: RG InstaCov sample project