This is free content: you can redistribute it and/or modify it under the terms of the Creative Commons Attribution-ShareAlike 4.0 International Public License.
The use of Cyberismo trademark is governed by the Cyberismo open source trademark policy. See separate file TRADEMARK.adoc.
This content is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the Creative Commons Attribution-ShareAlike 4.0 International Public License in the separate LICENSE file for more details.
This module defines basic workflows, card types, and templates for managing secure development in a software project.
The test content is under the page Test content in cardRoot. It has two test projects and the page Checklist tests:
-
Test project, with a deep dataflow model and the solution structure test fixture.
-
Layered test project, for the threat modelling features. It has two threat models: Threat model - Layered test project uses the diagram layout Zones in tree order, and Threat model - Grouped test project uses the default layout Follow the dataflows with groups.
To run the tests:
-
cyberismo validate -
Render the assertion reports and check that they report no failed test cases. Their pages are Testing - solution structure and Testing - threat modelling; for example, with the CLI,
cyberismo report <parameters file>, where the parameters file is{"name": "secdeva/reports/testingThreatModelling", "parameters": {"name": "secdeva/reports/testingThreatModelling", "cardKey": "secdeva_b4xs25d7"}}, where the card key is the page that shows the report. -
Run the assertion tests of the checklists:
cyberismo calc run tests/checklists.lp. The tests pass when the "results" array is empty. The fixtures are on the page Checklist tests. -
Run the assertion tests of the graph models:
node tests/run-graph-tests.mjs. The graph models are not part of the project’s calculations, so assertion reports cannot test them; seetests/run-graph-tests.mjsfor how the test cases intests/graphModelsare written. -
Check the rendered diagrams on the page Testing - dataflow diagrams against the checklists on the page.