diff --git a/docs/strictdoc_20_L1_Open_Requirements_Tool.sdoc b/docs/strictdoc_20_L1_Open_Requirements_Tool.sdoc index 874d601e2..bca5b4ce9 100644 --- a/docs/strictdoc_20_L1_Open_Requirements_Tool.sdoc +++ b/docs/strictdoc_20_L1_Open_Requirements_Tool.sdoc @@ -584,99 +584,6 @@ The Requirements Tool shall provide capabilities for validating requirements acc [[/SECTION]] -[[SECTION]] -MID: 7c112f3a5885477084396fd26387a864 -TITLE: Tool configurability - -[REQUIREMENT] -MID: 4550038552894ef69b85b281cff60c60 -UID: SDOC-SSS-92 -STATUS: Active -TITLE: Project-level configuration -STATEMENT: >>> -The Requirements Tool shall provide a solution for configuring the project-level options. - -NOTE: Examples of project-level options: - -- Project title. -- Global settings for the Requirements Tool itself. -<<< -RATIONALE: >>> -The requirement ensures the configurability of the tool for a specific project. -<<< - -[REQUIREMENT] -MID: 4550b38552894ef69b85b281cff60360 -UID: SDOC-SSS-93 -STATUS: Active -TITLE: Document-level configuration -STATEMENT: >>> -The Requirements Tool shall provide a solution for configuring the document-level options. - -NOTE: Examples of document-level options: - -- Document title -- Requirement prefix. -- Other options local to the content and the presentation of a given document. -<<< -RATIONALE: >>> -Sometimes, the project-level configuration can be not fine-grained enough. The requirement ensures that the requirements tool allows a configuration on a document level. -<<< - -[[/SECTION]] - -[[SECTION]] -MID: 56dabce670be4691b35434bda6d6bb36 -UID: SECTION-SSSS-Performance -TITLE: Performance - -[TEXT] -MID: 68e4b4b1ba78485f8620575ef9e1eaa2 -STATEMENT: >>> -This section captures the performance requirements towards a Requirements Tool. -<<< - -[REQUIREMENT] -MID: a0a95079e3c0438bb3ea9e5af7ddddc9 -UID: SDOC-SSS-13 -STATUS: Active -TITLE: Support large requirements sets -STATEMENT: >>> -The Requirements Tool shall support requirement trees with at least 10000 requirements. -<<< - -[REQUIREMENT] -MID: 64b982c9299a4c8eb7031495e940a3f8 -UID: SDOC-SSS-14 -STATUS: Active -TITLE: Support large project trees -STATEMENT: >>> -The Requirements Tool shall be able to handle documentation packages of at least 100 documents without significant performance degradation. -<<< - -[[/SECTION]] - -[[SECTION]] -MID: d1a483f3e321414b83bb4a39b1283293 -TITLE: Data integrity - -[REQUIREMENT] -MID: d1323d222a0040b2b6122c59b3c00f06 -UID: SDOC-SSS-94 -STATUS: Active -TITLE: Data integrity of documentation/requirements -STATEMENT: >>> -The Requirements Tool shall ensure the integrity of stored documentation and requirements data throughout its lifecycle. -<<< -RATIONALE: >>> -The requirement ensures that the tool and the tool's development includes measures for reducing the risk of any data corruption. -<<< -COMMENT: >>> -This includes safeguarding against data corruption, loss, and ensuring the reliability of links within the documentation. -<<< - -[[/SECTION]] - [[SECTION]] MID: ec52fa5cc1714b07863eb7da9432be1d UID: SECTION-SSSS-Existing-workflows @@ -782,6 +689,188 @@ The Requirements Tool shall provide capabilities for change management: [[/SECTION]] +[[SECTION]] +MID: 8b1da9907bc847c989dc807b7dff2a05 +UID: SECTION-RTS-Requirements-and-source-code +TITLE: Requirements and source code + +[REQUIREMENT] +MID: 4692362c77974fb8bcbeefdc248d0e89 +UID: SDOC-SSS-72 +STATUS: Active +TITLE: Traceability between requirements and source code +STATEMENT: >>> +The Requirements Tool shall support bi-directional tracing between requirements content and implementation source code with only minimal changes needed in the source code. + +NOTE: The Requirements Tool does not necessarily have to implement the complete tracing process. It may delegate parts of the traceability task to other tools, e.g., Doxygen, Lobster, etc. +<<< +RATIONALE: >>> +This requirement connects the worlds of requirements and source code which ensures that the traceability between requirements-implementation and requirements-tests can be achieved in an explicit way. Without a direct support of tracing requirements to source code by a requirements tool, the users have to find workarounds that are less efficient. +<<< +RELATIONS: +- TYPE: Parent + VALUE: ZEP-11 +- TYPE: Parent + VALUE: ZEP-12 + +[[/SECTION]] + +[[SECTION]] +MID: cd9e353e07ae4d50b1aa08999854aa02 +UID: SECTION-RTS-Requirements-exchange-formats-export-import +TITLE: Requirements exchange formats (export/import) + +[TEXT] +MID: ecc76e0991e44d6282776365496193e6 +STATEMENT: >>> +This section captures the requirements related to "Requirements exchange" as outlined in the section [LINK: SECTION-LRTS-Workflows]. + +The Requirements Tool should fundamentally support the exchange of documentation and requirements with other tools. Importing data into this tool and exporting data from it to other tools should be straightforward. The key focus of this section's requirements is on enabling seamless access to requirements and documentation data. +<<< + +[REQUIREMENT] +MID: 086eb992322d4c43ad91a40f6c9f9952 +UID: SDOC-SSS-96 +STATUS: Active +TITLE: PDF export +STATEMENT: >>> +The Requirements Tool shall support exporting documentation content to PDF, both individual documents and complete documentation trees. +<<< +RATIONALE: >>> +PDF is one of the most common formats for reviewing documentation. +<<< + +[REQUIREMENT] +MID: 73e70548c2cf415f94adbf1066d5fe4b +UID: SDOC-SSS-58 +STATUS: Active +TITLE: ReqIF export/import +STATEMENT: >>> +The Requirements Tool shall support exporting/importing requirements content from/to ReqIF format. +<<< +RATIONALE: >>> +ReqIF is a standard for exchanging requirements. There is currently no other standard of a higher maturity. +<<< +RELATIONS: +- TYPE: Parent + VALUE: ZEP-6 + +[REQUIREMENT] +MID: c94de32c2c2e454d81c77724a4f29283 +UID: SDOC-SSS-59 +STATUS: Active +TITLE: CSV export/import +STATEMENT: >>> +The Requirements Tool shall support exporting/importing requirements content from/to CSV. +<<< +RELATIONS: +- TYPE: Parent + VALUE: ZEP-7 + +[REQUIREMENT] +MID: f7a600a238e34075ac6b65852492cc2f +UID: SDOC-SSS-60 +STATUS: Active +TITLE: Excel export/import +STATEMENT: >>> +The Requirements Tool shall support exporting/importing requirements content from/to Excel. +<<< + +[[/SECTION]] + +[[SECTION]] +MID: 7c112f3a5885477084396fd26387a864 +TITLE: Tool configurability + +[REQUIREMENT] +MID: 4550038552894ef69b85b281cff60c60 +UID: SDOC-SSS-92 +STATUS: Active +TITLE: Project-level configuration +STATEMENT: >>> +The Requirements Tool shall provide a solution for configuring the project-level options. + +NOTE: Examples of project-level options: + +- Project title. +- Global settings for the Requirements Tool itself. +<<< +RATIONALE: >>> +The requirement ensures the configurability of the tool for a specific project. +<<< + +[REQUIREMENT] +MID: 4550b38552894ef69b85b281cff60360 +UID: SDOC-SSS-93 +STATUS: Active +TITLE: Document-level configuration +STATEMENT: >>> +The Requirements Tool shall provide a solution for configuring the document-level options. + +NOTE: Examples of document-level options: + +- Document title +- Requirement prefix. +- Other options local to the content and the presentation of a given document. +<<< +RATIONALE: >>> +Sometimes, the project-level configuration can be not fine-grained enough. The requirement ensures that the requirements tool allows a configuration on a document level. +<<< + +[[/SECTION]] + +[[SECTION]] +MID: 56dabce670be4691b35434bda6d6bb36 +UID: SECTION-SSSS-Performance +TITLE: Performance + +[TEXT] +MID: 68e4b4b1ba78485f8620575ef9e1eaa2 +STATEMENT: >>> +This section captures the performance requirements towards a Requirements Tool. +<<< + +[REQUIREMENT] +MID: a0a95079e3c0438bb3ea9e5af7ddddc9 +UID: SDOC-SSS-13 +STATUS: Active +TITLE: Support large requirements sets +STATEMENT: >>> +The Requirements Tool shall support requirement trees with at least 10000 requirements. +<<< + +[REQUIREMENT] +MID: 64b982c9299a4c8eb7031495e940a3f8 +UID: SDOC-SSS-14 +STATUS: Active +TITLE: Support large project trees +STATEMENT: >>> +The Requirements Tool shall be able to handle documentation packages of at least 100 documents without significant performance degradation. +<<< + +[[/SECTION]] + +[[SECTION]] +MID: d1a483f3e321414b83bb4a39b1283293 +TITLE: Data integrity + +[REQUIREMENT] +MID: d1323d222a0040b2b6122c59b3c00f06 +UID: SDOC-SSS-94 +STATUS: Active +TITLE: Data integrity of documentation/requirements +STATEMENT: >>> +The Requirements Tool shall ensure the integrity of stored documentation and requirements data throughout its lifecycle. +<<< +RATIONALE: >>> +The requirement ensures that the tool and the tool's development includes measures for reducing the risk of any data corruption. +<<< +COMMENT: >>> +This includes safeguarding against data corruption, loss, and ensuring the reliability of links within the documentation. +<<< + +[[/SECTION]] + [[SECTION]] MID: 85d2f75b2f074f98ace5ceb5288c09b9 UID: SECTION-RTC-Usability-installation-and-usage @@ -807,6 +896,15 @@ RATIONALE: >>> A tool that can be used by a large number of people simplifies its adoption and allows more users to work with documentation and requirements. <<< +[REQUIREMENT] +MID: 5461fce7174a4bc79048b3528b699beb +UID: SDOC-SSS-97 +STATUS: Active +TITLE: Tool identification +STATEMENT: >>> +The Requirements Tool shall provide identifying information, including title, release version, and project website links. +<<< + [REQUIREMENT] MID: 57b01915e4624634909dbb40f5d56697 UID: SDOC-SSS-80 @@ -1082,95 +1180,6 @@ NOTE: The folders/repositories can be arbitrarily nested. [[/SECTION]] -[[SECTION]] -MID: 8b1da9907bc847c989dc807b7dff2a05 -UID: SECTION-RTS-Requirements-and-source-code -TITLE: Requirements and source code - -[REQUIREMENT] -MID: 4692362c77974fb8bcbeefdc248d0e89 -UID: SDOC-SSS-72 -STATUS: Active -TITLE: Traceability between requirements and source code -STATEMENT: >>> -The Requirements Tool shall support bi-directional tracing between requirements content and implementation source code with only minimal changes needed in the source code. - -NOTE: The Requirements Tool does not necessarily have to implement the complete tracing process. It may delegate parts of the traceability task to other tools, e.g., Doxygen, Lobster, etc. -<<< -RATIONALE: >>> -This requirement connects the worlds of requirements and source code which ensures that the traceability between requirements-implementation and requirements-tests can be achieved in an explicit way. Without a direct support of tracing requirements to source code by a requirements tool, the users have to find workarounds that are less efficient. -<<< -RELATIONS: -- TYPE: Parent - VALUE: ZEP-11 -- TYPE: Parent - VALUE: ZEP-12 - -[[/SECTION]] - -[[SECTION]] -MID: cd9e353e07ae4d50b1aa08999854aa02 -UID: SECTION-RTS-Requirements-exchange-formats-export-import -TITLE: Requirements exchange formats (export/import) - -[TEXT] -MID: ecc76e0991e44d6282776365496193e6 -STATEMENT: >>> -This section captures the requirements related to "Requirements exchange" as outlined in the section [LINK: SECTION-LRTS-Workflows]. - -The Requirements Tool should fundamentally support the exchange of documentation and requirements with other tools. Importing data into this tool and exporting data from it to other tools should be straightforward. The key focus of this section's requirements is on enabling seamless access to requirements and documentation data. -<<< - -[REQUIREMENT] -MID: 086eb992322d4c43ad91a40f6c9f9952 -UID: SDOC-SSS-96 -STATUS: Active -TITLE: PDF export -STATEMENT: >>> -The Requirements Tool shall support exporting documentation content to PDF, both individual documents and complete documentation trees. -<<< -RATIONALE: >>> -PDF is one of the most common formats for reviewing documentation. -<<< - -[REQUIREMENT] -MID: 73e70548c2cf415f94adbf1066d5fe4b -UID: SDOC-SSS-58 -STATUS: Active -TITLE: ReqIF export/import -STATEMENT: >>> -The Requirements Tool shall support exporting/importing requirements content from/to ReqIF format. -<<< -RATIONALE: >>> -ReqIF is a standard for exchanging requirements. There is currently no other standard of a higher maturity. -<<< -RELATIONS: -- TYPE: Parent - VALUE: ZEP-6 - -[REQUIREMENT] -MID: c94de32c2c2e454d81c77724a4f29283 -UID: SDOC-SSS-59 -STATUS: Active -TITLE: CSV export/import -STATEMENT: >>> -The Requirements Tool shall support exporting/importing requirements content from/to CSV. -<<< -RELATIONS: -- TYPE: Parent - VALUE: ZEP-7 - -[REQUIREMENT] -MID: f7a600a238e34075ac6b65852492cc2f -UID: SDOC-SSS-60 -STATUS: Active -TITLE: Excel export/import -STATEMENT: >>> -The Requirements Tool shall support exporting/importing requirements content from/to Excel. -<<< - -[[/SECTION]] - [[SECTION]] MID: efaa3e91045c4d49a70232f09a85ad35 UID: SECTION-RTS-Requirements-collaboration diff --git a/docs/strictdoc_21_L2_StrictDoc_Requirements.sdoc b/docs/strictdoc_21_L2_StrictDoc_Requirements.sdoc index 8c1c85d81..74d701c4b 100644 --- a/docs/strictdoc_21_L2_StrictDoc_Requirements.sdoc +++ b/docs/strictdoc_21_L2_StrictDoc_Requirements.sdoc @@ -737,23 +737,6 @@ RELATIONS: - TYPE: File VALUE: strictdoc/server/routers/main_router.py -[REQUIREMENT] -MID: f2fd90ad8a2946e7b085233a9c7a8a75 -UID: SDOC-SRS-51 -STATUS: Active -TITLE: Export to HTML content to PDF (HTML2PDF) -STATEMENT: >>> -StrictDoc shall allow exporting documents and entire documentation trees to PDF. -<<< -RATIONALE: >>> -As required by the parent requirement, PDF is one of the most common documentation formats. -<<< -RELATIONS: -- TYPE: Parent - VALUE: DO178-5 -- TYPE: Parent - VALUE: SDOC-SSS-96 - [REQUIREMENT] MID: 8811f0ef33de4365bc66a602a8c184f6 UID: SDOC-SRS-48 @@ -849,6 +832,18 @@ RELATIONS: - TYPE: Parent VALUE: SDOC-SSS-3 +[REQUIREMENT] +MID: 9b291b5df5914f13b23fb8c367be0a24 +UID: SDOC-SRS-161 +STATUS: Active +TITLE: Clone node from existing node +STATEMENT: >>> +StrictDoc shall support cloning nodes from existing nodes. +<<< +RATIONALE: >>> +Simplifies the creation of similar nodes. +<<< + [REQUIREMENT] MID: 13968ae160744e10ba8979eaee2f4f54 UID: SDOC-SRS-55 @@ -861,6 +856,15 @@ RELATIONS: - TYPE: Parent VALUE: SDOC-SSS-4 +[REQUIREMENT] +MID: 0ec87f08626a4839b5951d98fef9e0e1 +UID: SDOC-SRS-162 +STATUS: Active +TITLE: Delete node +STATEMENT: >>> +StrictDoc's Document screen shall support the deletion of document nodes. +<<< + [REQUIREMENT] MID: b805e36294764e8f8cb5a88ab8fa0467 UID: SDOC-SRS-159 @@ -1043,6 +1047,38 @@ RELATIONS: [[/SECTION]] +[[SECTION]] +MID: 181dfbcbbfac41e18f7fb09af0df8f4e +TITLE: Screen: HTML2PDF + +[REQUIREMENT] +MID: f2fd90ad8a2946e7b085233a9c7a8a75 +UID: SDOC-SRS-51 +STATUS: Active +TITLE: Export to HTML content to PDF (HTML2PDF) +STATEMENT: >>> +StrictDoc shall allow exporting documents and entire documentation trees to PDF. +<<< +RATIONALE: >>> +As required by the parent requirement, PDF is one of the most common documentation formats. +<<< +RELATIONS: +- TYPE: Parent + VALUE: DO178-5 +- TYPE: Parent + VALUE: SDOC-SSS-96 + +[REQUIREMENT] +MID: 6cfcb21b3f1949f49d13af6b00d3d37a +UID: SDOC-SRS-160 +STATUS: Active +TITLE: Custom PDF export template +STATEMENT: >>> +StrictDoc shall support the customization of the PDF export template. +<<< + +[[/SECTION]] + [[SECTION]] MID: ddf15b3113a54107979752ec192e2ded TITLE: Screen: Project statistics @@ -1118,6 +1154,55 @@ RELATIONS: [[/SECTION]] +[[SECTION]] +MID: 63df985038374acb82e9b4185eff5a7e +TITLE: Screen: Source coverage + +[REQUIREMENT] +MID: 3aeb1eea0dba4041a9161a1a8d291999 +UID: SDOC-SRS-35 +STATUS: Active +TITLE: Project source code coverage +STATEMENT: >>> +StrictDoc shall generate project source code coverage information. + +NOTE: Source code information can be visualized using both web or CLI interfaces. +<<< +RELATIONS: +- TYPE: Parent + VALUE: SDOC-SSS-72 +- TYPE: Parent + VALUE: DO178-13 +- TYPE: File + FORMAT: Sourcecode + VALUE: strictdoc/export/html/generators/source_file_coverage.py + +[[/SECTION]] + +[[SECTION]] +MID: 9c19eea544ec4d90bb65fd8fd9b13cc4 +TITLE: Screen: Single source file coverage + +[REQUIREMENT] +MID: 56ecfb19152e45b09c0e55de2d1d5f05 +UID: SDOC-SRS-36 +STATUS: Active +TITLE: Single source file coverage +STATEMENT: >>> +StrictDoc shall generate single file traceability information. +<<< +RATIONALE: >>> +With this capability in place, it is possible to focus on a single implementation file's links to requirements which helps in the code reviews and inspections. +<<< +RELATIONS: +- TYPE: Parent + VALUE: SDOC-SSS-72 +- TYPE: File + FORMAT: Sourcecode + VALUE: strictdoc/export/html/generators/source_file_view_generator.py + +[[/SECTION]] + [[SECTION]] MID: 14ad600308434e6baaeef02d3e90b720 TITLE: Screen: Traceability matrix @@ -1443,43 +1528,6 @@ A reference example: Generating test specifications from the TEST_SPEC nodes whi [[/SECTION]] -[REQUIREMENT] -MID: 3aeb1eea0dba4041a9161a1a8d291999 -UID: SDOC-SRS-35 -STATUS: Active -TITLE: Generate project source code coverage -STATEMENT: >>> -StrictDoc shall generate project source code coverage information. - -NOTE: Source code information can be visualized using both web or CLI interfaces. -<<< -RELATIONS: -- TYPE: Parent - VALUE: SDOC-SSS-72 -- TYPE: Parent - VALUE: DO178-13 -- TYPE: File - FORMAT: Sourcecode - VALUE: strictdoc/export/html/generators/source_file_coverage.py - -[REQUIREMENT] -MID: 56ecfb19152e45b09c0e55de2d1d5f05 -UID: SDOC-SRS-36 -STATUS: Active -TITLE: Generate single source file coverage -STATEMENT: >>> -StrictDoc shall generate single file traceability information. -<<< -RATIONALE: >>> -With this capability in place, it is possible to focus on a single implementation file's links to requirements which helps in the code reviews and inspections. -<<< -RELATIONS: -- TYPE: Parent - VALUE: SDOC-SSS-72 -- TYPE: File - FORMAT: Sourcecode - VALUE: strictdoc/export/html/generators/source_file_view_generator.py - [[/SECTION]] [[SECTION]] @@ -1753,6 +1801,18 @@ RELATIONS: MID: 44eb09d0e5b542d5984d234167e6f337 TITLE: User experience +[REQUIREMENT] +MID: 2bfb3703b218411b87864733bffb59cf +UID: SDOC-SRS-163 +STATUS: Active +TITLE: StrictDoc identification +STATEMENT: >>> +StrictDoc shall provide 'about' and 'version' commands that display the project's title, current version, license, and links to the project's web pages. +<<< +RELATIONS: +- TYPE: Parent + VALUE: SDOC-SSS-97 + [[SECTION]] MID: 821c01118a9643a188a4ecc5b0cec6a5 UID: SECTION-SSRS-Strict-mode-by-default @@ -1766,6 +1826,9 @@ TITLE: Warnings are errors STATEMENT: >>> StrictDoc's default mode of operation shall treat all warnings as errors. <<< +RATIONALE: >>> +When warnings are treated as errors, the user becomes aware of potential issues as soon as they appear. +<<< RELATIONS: - TYPE: Parent VALUE: SDOC-SSS-78 diff --git a/strictdoc/commands/about_command.py b/strictdoc/commands/about_command.py index ed0adc45e..ede0cf1b4 100644 --- a/strictdoc/commands/about_command.py +++ b/strictdoc/commands/about_command.py @@ -1,3 +1,7 @@ +""" +@relation(SDOC-SRS-163, scope=file) +""" + import strictdoc diff --git a/strictdoc/commands/version_command.py b/strictdoc/commands/version_command.py index def07327e..144fc7e50 100644 --- a/strictdoc/commands/version_command.py +++ b/strictdoc/commands/version_command.py @@ -1,3 +1,7 @@ +""" +@relation(SDOC-SRS-163, scope=file) +""" + import strictdoc diff --git a/tests/end2end/project_options/features/02_search_feature_precondition_failed_when_not_activated/test_case.py b/tests/end2end/project_options/features/02_search_feature_precondition_failed_when_not_activated/test_case.py index 02bb3ad08..4fc49a8b8 100644 --- a/tests/end2end/project_options/features/02_search_feature_precondition_failed_when_not_activated/test_case.py +++ b/tests/end2end/project_options/features/02_search_feature_precondition_failed_when_not_activated/test_case.py @@ -1,3 +1,7 @@ +""" +@relation(SDOC-SRS-155, scope=file) +""" + import os from tests.end2end.e2e_case import E2ECase diff --git a/tests/end2end/screens/document/_export_to_pdf/export_to_pdf_basic/test_case.py b/tests/end2end/screens/document/_export_to_pdf/export_to_pdf_basic/test_case.py index 7e2656e77..ef1805149 100644 --- a/tests/end2end/screens/document/_export_to_pdf/export_to_pdf_basic/test_case.py +++ b/tests/end2end/screens/document/_export_to_pdf/export_to_pdf_basic/test_case.py @@ -1,3 +1,7 @@ +""" +@relation(SDOC-SRS-51, scope=file) +""" + import os import shutil diff --git a/tests/end2end/screens/document/_export_to_pdf/export_to_pdf_with_picture/test_case.py b/tests/end2end/screens/document/_export_to_pdf/export_to_pdf_with_picture/test_case.py index 3ad8626fb..a4ddbca32 100644 --- a/tests/end2end/screens/document/_export_to_pdf/export_to_pdf_with_picture/test_case.py +++ b/tests/end2end/screens/document/_export_to_pdf/export_to_pdf_with_picture/test_case.py @@ -1,3 +1,7 @@ +""" +@relation(SDOC-SRS-51, scope=file) +""" + import os import shutil diff --git a/tests/end2end/screens/document/clone_requirement/clone_requirement/expected_output/document.sdoc b/tests/end2end/screens/document/clone_node/clone_node/expected_output/document.sdoc similarity index 100% rename from tests/end2end/screens/document/clone_requirement/clone_requirement/expected_output/document.sdoc rename to tests/end2end/screens/document/clone_node/clone_node/expected_output/document.sdoc diff --git a/tests/end2end/screens/document/clone_requirement/clone_requirement/expected_output/strictdoc.toml b/tests/end2end/screens/document/clone_node/clone_node/expected_output/strictdoc.toml similarity index 100% rename from tests/end2end/screens/document/clone_requirement/clone_requirement/expected_output/strictdoc.toml rename to tests/end2end/screens/document/clone_node/clone_node/expected_output/strictdoc.toml diff --git a/tests/end2end/screens/document/clone_requirement/clone_requirement/input/document.sdoc b/tests/end2end/screens/document/clone_node/clone_node/input/document.sdoc similarity index 100% rename from tests/end2end/screens/document/clone_requirement/clone_requirement/input/document.sdoc rename to tests/end2end/screens/document/clone_node/clone_node/input/document.sdoc diff --git a/tests/end2end/screens/document/clone_requirement/clone_requirement/input/strictdoc.toml b/tests/end2end/screens/document/clone_node/clone_node/input/strictdoc.toml similarity index 100% rename from tests/end2end/screens/document/clone_requirement/clone_requirement/input/strictdoc.toml rename to tests/end2end/screens/document/clone_node/clone_node/input/strictdoc.toml diff --git a/tests/end2end/screens/document/clone_requirement/clone_requirement/test_case.py b/tests/end2end/screens/document/clone_node/clone_node/test_case.py similarity index 97% rename from tests/end2end/screens/document/clone_requirement/clone_requirement/test_case.py rename to tests/end2end/screens/document/clone_node/clone_node/test_case.py index 97c1da1ca..7b94a5810 100644 --- a/tests/end2end/screens/document/clone_requirement/clone_requirement/test_case.py +++ b/tests/end2end/screens/document/clone_node/clone_node/test_case.py @@ -1,3 +1,7 @@ +""" +@relation(SDOC-SRS-161, scope=file) +""" + from selenium.webdriver.common.by import By from tests.end2end.e2e_case import E2ECase diff --git a/tests/end2end/screens/document/clone_requirement/clone_requirement_PREFIX_is_None/expected_output/document.sdoc b/tests/end2end/screens/document/clone_node/clone_node_PREFIX_is_None/expected_output/document.sdoc similarity index 100% rename from tests/end2end/screens/document/clone_requirement/clone_requirement_PREFIX_is_None/expected_output/document.sdoc rename to tests/end2end/screens/document/clone_node/clone_node_PREFIX_is_None/expected_output/document.sdoc diff --git a/tests/end2end/screens/document/clone_requirement/clone_requirement_PREFIX_is_None/input/document.sdoc b/tests/end2end/screens/document/clone_node/clone_node_PREFIX_is_None/input/document.sdoc similarity index 100% rename from tests/end2end/screens/document/clone_requirement/clone_requirement_PREFIX_is_None/input/document.sdoc rename to tests/end2end/screens/document/clone_node/clone_node_PREFIX_is_None/input/document.sdoc diff --git a/tests/end2end/screens/document/clone_requirement/clone_requirement_PREFIX_is_None/test_case.py b/tests/end2end/screens/document/clone_node/clone_node_PREFIX_is_None/test_case.py similarity index 97% rename from tests/end2end/screens/document/clone_requirement/clone_requirement_PREFIX_is_None/test_case.py rename to tests/end2end/screens/document/clone_node/clone_node_PREFIX_is_None/test_case.py index 97c1da1ca..7b94a5810 100644 --- a/tests/end2end/screens/document/clone_requirement/clone_requirement_PREFIX_is_None/test_case.py +++ b/tests/end2end/screens/document/clone_node/clone_node_PREFIX_is_None/test_case.py @@ -1,3 +1,7 @@ +""" +@relation(SDOC-SRS-161, scope=file) +""" + from selenium.webdriver.common.by import By from tests.end2end.e2e_case import E2ECase diff --git a/tests/end2end/screens/document/delete_node/_SECTION/_validation/delete_section_that_has_incoming_LINKs/test_case.py b/tests/end2end/screens/document/delete_node/_SECTION/_validation/delete_section_that_has_incoming_LINKs/test_case.py index 6327a778a..45cf8513f 100644 --- a/tests/end2end/screens/document/delete_node/_SECTION/_validation/delete_section_that_has_incoming_LINKs/test_case.py +++ b/tests/end2end/screens/document/delete_node/_SECTION/_validation/delete_section_that_has_incoming_LINKs/test_case.py @@ -1,3 +1,7 @@ +""" +@relation(SDOC-SRS-162, scope=file) +""" + from tests.end2end.e2e_case import E2ECase from tests.end2end.end2end_test_setup import End2EndTestSetup from tests.end2end.helpers.screens.project_index.screen_project_index import ( diff --git a/tests/end2end/screens/document/delete_node/_SECTION/delete_simple_non_nested_section/test_delete_simple_non_nested_section.py b/tests/end2end/screens/document/delete_node/_SECTION/delete_simple_non_nested_section/test_delete_simple_non_nested_section.py index fca8b1073..fb2a632fd 100644 --- a/tests/end2end/screens/document/delete_node/_SECTION/delete_simple_non_nested_section/test_delete_simple_non_nested_section.py +++ b/tests/end2end/screens/document/delete_node/_SECTION/delete_simple_non_nested_section/test_delete_simple_non_nested_section.py @@ -1,3 +1,7 @@ +""" +@relation(SDOC-SRS-162, scope=file) +""" + from tests.end2end.e2e_case import E2ECase from tests.end2end.end2end_test_setup import End2EndTestSetup from tests.end2end.helpers.screens.project_index.screen_project_index import ( diff --git a/tests/end2end/screens/document/delete_node/_validation/delete_node_must_prevent_deletion_when_children_have_incoming_parent_RELATIONs/test_case.py b/tests/end2end/screens/document/delete_node/_validation/delete_node_must_prevent_deletion_when_children_have_incoming_parent_RELATIONs/test_case.py index 4c7f82be1..ef7269b2f 100644 --- a/tests/end2end/screens/document/delete_node/_validation/delete_node_must_prevent_deletion_when_children_have_incoming_parent_RELATIONs/test_case.py +++ b/tests/end2end/screens/document/delete_node/_validation/delete_node_must_prevent_deletion_when_children_have_incoming_parent_RELATIONs/test_case.py @@ -1,3 +1,7 @@ +""" +@relation(SDOC-SRS-162, scope=file) +""" + from tests.end2end.e2e_case import E2ECase from tests.end2end.end2end_test_setup import End2EndTestSetup from tests.end2end.helpers.screens.project_index.screen_project_index import ( diff --git a/tests/end2end/screens/document/delete_node/_validation/delete_node_must_prevent_deletion_when_incoming_parent_RELATIONs/test_case.py b/tests/end2end/screens/document/delete_node/_validation/delete_node_must_prevent_deletion_when_incoming_parent_RELATIONs/test_case.py index 7f6daca87..6c3c34f95 100644 --- a/tests/end2end/screens/document/delete_node/_validation/delete_node_must_prevent_deletion_when_incoming_parent_RELATIONs/test_case.py +++ b/tests/end2end/screens/document/delete_node/_validation/delete_node_must_prevent_deletion_when_incoming_parent_RELATIONs/test_case.py @@ -1,3 +1,7 @@ +""" +@relation(SDOC-SRS-162, scope=file) +""" + from tests.end2end.e2e_case import E2ECase from tests.end2end.end2end_test_setup import End2EndTestSetup from tests.end2end.helpers.screens.project_index.screen_project_index import ( diff --git a/tests/end2end/screens/document/delete_node/_validation/delete_node_that_has_incoming_LINKs/test_case.py b/tests/end2end/screens/document/delete_node/_validation/delete_node_that_has_incoming_LINKs/test_case.py index fb7879b7b..e350ef8b0 100644 --- a/tests/end2end/screens/document/delete_node/_validation/delete_node_that_has_incoming_LINKs/test_case.py +++ b/tests/end2end/screens/document/delete_node/_validation/delete_node_that_has_incoming_LINKs/test_case.py @@ -1,3 +1,7 @@ +""" +@relation(SDOC-SRS-162, scope=file) +""" + from tests.end2end.e2e_case import E2ECase from tests.end2end.end2end_test_setup import End2EndTestSetup from tests.end2end.helpers.screens.project_index.screen_project_index import ( diff --git a/tests/end2end/screens/document/delete_node/_validation/delete_node_with_ANCHOR_that_has_incoming_LINKs/test_case.py b/tests/end2end/screens/document/delete_node/_validation/delete_node_with_ANCHOR_that_has_incoming_LINKs/test_case.py index 76586a898..a30a60ac6 100644 --- a/tests/end2end/screens/document/delete_node/_validation/delete_node_with_ANCHOR_that_has_incoming_LINKs/test_case.py +++ b/tests/end2end/screens/document/delete_node/_validation/delete_node_with_ANCHOR_that_has_incoming_LINKs/test_case.py @@ -1,3 +1,7 @@ +""" +@relation(SDOC-SRS-162, scope=file) +""" + from tests.end2end.e2e_case import E2ECase from tests.end2end.end2end_test_setup import End2EndTestSetup from tests.end2end.helpers.screens.project_index.screen_project_index import ( diff --git a/tests/end2end/screens/document/delete_node/delete_node_delete_existing/test_case.py b/tests/end2end/screens/document/delete_node/delete_node_delete_existing/test_case.py index dcd87561f..8fab5d1bf 100644 --- a/tests/end2end/screens/document/delete_node/delete_node_delete_existing/test_case.py +++ b/tests/end2end/screens/document/delete_node/delete_node_delete_existing/test_case.py @@ -1,3 +1,7 @@ +""" +@relation(SDOC-SRS-162, scope=file) +""" + from tests.end2end.e2e_case import E2ECase from tests.end2end.end2end_test_setup import End2EndTestSetup from tests.end2end.helpers.screens.project_index.screen_project_index import ( diff --git a/tests/end2end/screens/document/delete_node/delete_node_delete_newly_created/test_case.py b/tests/end2end/screens/document/delete_node/delete_node_delete_newly_created/test_case.py index f35891b05..c440f6ebc 100644 --- a/tests/end2end/screens/document/delete_node/delete_node_delete_newly_created/test_case.py +++ b/tests/end2end/screens/document/delete_node/delete_node_delete_newly_created/test_case.py @@ -1,3 +1,7 @@ +""" +@relation(SDOC-SRS-162, scope=file) +""" + from tests.end2end.e2e_case import E2ECase from tests.end2end.end2end_test_setup import End2EndTestSetup from tests.end2end.helpers.screens.document.form_edit_requirement import ( diff --git a/tests/end2end/screens/document/export_to_reqif/export_reqif_nominal_case/test_case.py b/tests/end2end/screens/document/export_to_reqif/export_reqif_nominal_case/test_case.py index 10615a4d4..45b4f1a8b 100644 --- a/tests/end2end/screens/document/export_to_reqif/export_reqif_nominal_case/test_case.py +++ b/tests/end2end/screens/document/export_to_reqif/export_reqif_nominal_case/test_case.py @@ -1,3 +1,7 @@ +""" +@relation(SDOC-SRS-72, scope=file) +""" + import filecmp import os import shutil diff --git a/tests/end2end/screens/pdf/view_pdf_document_custom_template/test_case.py b/tests/end2end/screens/pdf/view_pdf_document_custom_template/test_case.py index e0b172ece..7362ad167 100644 --- a/tests/end2end/screens/pdf/view_pdf_document_custom_template/test_case.py +++ b/tests/end2end/screens/pdf/view_pdf_document_custom_template/test_case.py @@ -1,3 +1,7 @@ +""" +@relation(SDOC-SRS-160, scope=file) +""" + import os from tests.end2end.e2e_case import E2ECase diff --git a/tests/end2end/screens/project_index/export_tree_to_reqif/basic_reqif_export/test_case.py b/tests/end2end/screens/project_index/export_tree_to_reqif/basic_reqif_export/test_case.py index 4c727db59..fcc1aaf9a 100644 --- a/tests/end2end/screens/project_index/export_tree_to_reqif/basic_reqif_export/test_case.py +++ b/tests/end2end/screens/project_index/export_tree_to_reqif/basic_reqif_export/test_case.py @@ -1,3 +1,7 @@ +""" +@relation(SDOC-SRS-72, scope=file) +""" + import os import shutil import sys diff --git a/tests/end2end/screens/project_index/import_document_from_reqif/_validations/input_file_not_reqif_format/test_case.py b/tests/end2end/screens/project_index/import_document_from_reqif/_validations/input_file_not_reqif_format/test_case.py index 7a3ca9599..72599e1d0 100644 --- a/tests/end2end/screens/project_index/import_document_from_reqif/_validations/input_file_not_reqif_format/test_case.py +++ b/tests/end2end/screens/project_index/import_document_from_reqif/_validations/input_file_not_reqif_format/test_case.py @@ -1,3 +1,7 @@ +""" +@relation(SDOC-SRS-72, scope=file) +""" + import os from tests.end2end.e2e_case import E2ECase diff --git a/tests/end2end/screens/project_index/import_document_from_reqif/import_document_default_import/test_case.py b/tests/end2end/screens/project_index/import_document_from_reqif/import_document_default_import/test_case.py index 6f3904e38..9bfc44f70 100644 --- a/tests/end2end/screens/project_index/import_document_from_reqif/import_document_default_import/test_case.py +++ b/tests/end2end/screens/project_index/import_document_from_reqif/import_document_default_import/test_case.py @@ -1,3 +1,7 @@ +""" +@relation(SDOC-SRS-72, scope=file) +""" + import os from tests.end2end.e2e_case import E2ECase diff --git a/tests/end2end/screens/project_index/import_document_from_reqif/import_document_from_reqif_tree_of_two_documents/test_case.py b/tests/end2end/screens/project_index/import_document_from_reqif/import_document_from_reqif_tree_of_two_documents/test_case.py index ba1e6707b..8cc1ca85f 100644 --- a/tests/end2end/screens/project_index/import_document_from_reqif/import_document_from_reqif_tree_of_two_documents/test_case.py +++ b/tests/end2end/screens/project_index/import_document_from_reqif/import_document_from_reqif_tree_of_two_documents/test_case.py @@ -1,3 +1,7 @@ +""" +@relation(SDOC-SRS-72, scope=file) +""" + import os from tests.end2end.e2e_case import E2ECase diff --git a/tests/end2end/screens/project_index/import_document_from_reqif/import_reqif_cancel_import/test_case.py b/tests/end2end/screens/project_index/import_document_from_reqif/import_reqif_cancel_import/test_case.py index 1a35e31f3..3dc0cbc3c 100644 --- a/tests/end2end/screens/project_index/import_document_from_reqif/import_reqif_cancel_import/test_case.py +++ b/tests/end2end/screens/project_index/import_document_from_reqif/import_reqif_cancel_import/test_case.py @@ -1,3 +1,7 @@ +""" +@relation(SDOC-SRS-72, scope=file) +""" + import os from tests.end2end.e2e_case import E2ECase diff --git a/tests/integration/features/commands/about/01_print_about/test.itest b/tests/integration/features/commands/about/01_print_about/test.itest index 45603969f..0021165bb 100644 --- a/tests/integration/features/commands/about/01_print_about/test.itest +++ b/tests/integration/features/commands/about/01_print_about/test.itest @@ -1,3 +1,7 @@ +# +# @relation(SDOC-SRS-163, scope=file) +# + RUN: %strictdoc about | filecheck %s --dump-input=fail CHECK:= StrictDoc = diff --git a/tests/integration/features/commands/version/01_print_version/test.itest b/tests/integration/features/commands/version/01_print_version/test.itest index 6f012d023..5cfdf7623 100644 --- a/tests/integration/features/commands/version/01_print_version/test.itest +++ b/tests/integration/features/commands/version/01_print_version/test.itest @@ -1,3 +1,7 @@ +# +# @relation(SDOC-SRS-163, scope=file) +# + RUN: %mkdir %T/ RUN: %strictdoc version | filecheck %s --dump-input=fail RUN: %strictdoc -v | filecheck %s --dump-input=fail diff --git a/tests/integration/features/reqif/profiles/p01_sdoc/examples/01_sample/test.itest b/tests/integration/features/reqif/profiles/p01_sdoc/examples/01_sample/test.itest index 0cd77c07e..e3dafe925 100644 --- a/tests/integration/features/reqif/profiles/p01_sdoc/examples/01_sample/test.itest +++ b/tests/integration/features/reqif/profiles/p01_sdoc/examples/01_sample/test.itest @@ -1,3 +1,7 @@ +# +# @relation(SDOC-SRS-72, scope=file) +# + RUN: %strictdoc import reqif sdoc %S/sample.reqif %T/ RUN: %cat %T/sample.sdoc | filecheck %s diff --git a/tests/integration/features/source_code_traceability/_source_nodes/01_feature_disabled/strictdoc.toml b/tests/integration/features/source_code_traceability/_source_nodes/01_feature_disabled/strictdoc.toml index edb9ef6a1..ddb2b02d4 100644 --- a/tests/integration/features/source_code_traceability/_source_nodes/01_feature_disabled/strictdoc.toml +++ b/tests/integration/features/source_code_traceability/_source_nodes/01_feature_disabled/strictdoc.toml @@ -10,3 +10,7 @@ source_nodes = [ # exist/have files with valid source comments containing SDoc node descriptions. { "tests_another_path/" = { uid = "TEST_DOC", node_type = "TEST_SPEC" } } ] + +exclude_source_paths = [ + "test.itest" +] diff --git a/tests/integration/features/source_code_traceability/_source_nodes/01_feature_disabled/test.itest b/tests/integration/features/source_code_traceability/_source_nodes/01_feature_disabled/test.itest index 17e530976..9ab358061 100644 --- a/tests/integration/features/source_code_traceability/_source_nodes/01_feature_disabled/test.itest +++ b/tests/integration/features/source_code_traceability/_source_nodes/01_feature_disabled/test.itest @@ -1,3 +1,7 @@ +# +# @relation(SDOC-SRS-141, scope=file) +# + RUN: %strictdoc export %S --output-dir %T | filecheck %s CHECK: Published: Hello world doc diff --git a/tests/integration/features/source_code_traceability/_source_nodes/02_function_with_source_node/strictdoc.toml b/tests/integration/features/source_code_traceability/_source_nodes/02_function_with_source_node/strictdoc.toml index 3b1e3382a..79b86146e 100644 --- a/tests/integration/features/source_code_traceability/_source_nodes/02_function_with_source_node/strictdoc.toml +++ b/tests/integration/features/source_code_traceability/_source_nodes/02_function_with_source_node/strictdoc.toml @@ -8,3 +8,7 @@ features = [ source_nodes = [ { "tests/" = { uid = "TEST_DOC", node_type = "TEST_SPEC" } } ] + +exclude_source_paths = [ + "test.itest" +] diff --git a/tests/integration/features/source_code_traceability/_source_nodes/02_function_with_source_node/test.itest b/tests/integration/features/source_code_traceability/_source_nodes/02_function_with_source_node/test.itest index 09cd7a82d..44966a001 100644 --- a/tests/integration/features/source_code_traceability/_source_nodes/02_function_with_source_node/test.itest +++ b/tests/integration/features/source_code_traceability/_source_nodes/02_function_with_source_node/test.itest @@ -1,3 +1,7 @@ +# +# @relation(SDOC-SRS-141, scope=file) +# + RUN: %strictdoc export %S --output-dir %T | filecheck %s CHECK: Published: Hello world doc diff --git a/tests/integration/features/source_code_traceability/_source_nodes/03_cpp_test_function_with_macro_name/strictdoc.toml b/tests/integration/features/source_code_traceability/_source_nodes/03_cpp_test_function_with_macro_name/strictdoc.toml index 3b1e3382a..79b86146e 100644 --- a/tests/integration/features/source_code_traceability/_source_nodes/03_cpp_test_function_with_macro_name/strictdoc.toml +++ b/tests/integration/features/source_code_traceability/_source_nodes/03_cpp_test_function_with_macro_name/strictdoc.toml @@ -8,3 +8,7 @@ features = [ source_nodes = [ { "tests/" = { uid = "TEST_DOC", node_type = "TEST_SPEC" } } ] + +exclude_source_paths = [ + "test.itest" +] diff --git a/tests/integration/features/source_code_traceability/_source_nodes/03_cpp_test_function_with_macro_name/test.itest b/tests/integration/features/source_code_traceability/_source_nodes/03_cpp_test_function_with_macro_name/test.itest index e00b82257..8b45a1799 100644 --- a/tests/integration/features/source_code_traceability/_source_nodes/03_cpp_test_function_with_macro_name/test.itest +++ b/tests/integration/features/source_code_traceability/_source_nodes/03_cpp_test_function_with_macro_name/test.itest @@ -1,3 +1,7 @@ +# +# @relation(SDOC-SRS-141, scope=file) +# + RUN: %strictdoc export %S --output-dir %T | filecheck %s CHECK: Published: Hello world doc diff --git a/tests/integration/features/source_code_traceability/_source_nodes/10_auto_uid_does_not_generate_automatic_content/strictdoc.toml b/tests/integration/features/source_code_traceability/_source_nodes/10_auto_uid_does_not_generate_automatic_content/strictdoc.toml index 3b1e3382a..79b86146e 100644 --- a/tests/integration/features/source_code_traceability/_source_nodes/10_auto_uid_does_not_generate_automatic_content/strictdoc.toml +++ b/tests/integration/features/source_code_traceability/_source_nodes/10_auto_uid_does_not_generate_automatic_content/strictdoc.toml @@ -8,3 +8,7 @@ features = [ source_nodes = [ { "tests/" = { uid = "TEST_DOC", node_type = "TEST_SPEC" } } ] + +exclude_source_paths = [ + "test.itest" +] diff --git a/tests/integration/features/source_code_traceability/_source_nodes/10_auto_uid_does_not_generate_automatic_content/test.itest b/tests/integration/features/source_code_traceability/_source_nodes/10_auto_uid_does_not_generate_automatic_content/test.itest index 054a9a5c0..2e1641874 100644 --- a/tests/integration/features/source_code_traceability/_source_nodes/10_auto_uid_does_not_generate_automatic_content/test.itest +++ b/tests/integration/features/source_code_traceability/_source_nodes/10_auto_uid_does_not_generate_automatic_content/test.itest @@ -1,6 +1,10 @@ +# # This test verifies that the auto-generated content created from test # specifications is not written back to file system when auto-uid command # is executed. +# +# @relation(SDOC-SRS-141, scope=file) +# RUN: cp -r %S/* ./ RUN: %strictdoc manage auto-uid . diff --git a/tests/integration/features/source_code_traceability/_source_nodes/20_linux_spdx_in_source_identifiers/strictdoc.toml b/tests/integration/features/source_code_traceability/_source_nodes/20_linux_spdx_in_source_identifiers/strictdoc.toml index d145827c0..58d15585c 100644 --- a/tests/integration/features/source_code_traceability/_source_nodes/20_linux_spdx_in_source_identifiers/strictdoc.toml +++ b/tests/integration/features/source_code_traceability/_source_nodes/20_linux_spdx_in_source_identifiers/strictdoc.toml @@ -8,3 +8,7 @@ features = [ source_nodes = [ { "src/" = { uid = "SPDX_DOC", node_type = "REQUIREMENT" } } ] + +exclude_source_paths = [ + "test.itest" +] diff --git a/tests/integration/features/source_code_traceability/_source_nodes/20_linux_spdx_in_source_identifiers/test.itest b/tests/integration/features/source_code_traceability/_source_nodes/20_linux_spdx_in_source_identifiers/test.itest index b24ddee3b..c44b3f801 100644 --- a/tests/integration/features/source_code_traceability/_source_nodes/20_linux_spdx_in_source_identifiers/test.itest +++ b/tests/integration/features/source_code_traceability/_source_nodes/20_linux_spdx_in_source_identifiers/test.itest @@ -1,3 +1,7 @@ +# +# @relation(SDOC-SRS-141, scope=file) +# + RUN: %strictdoc --debug export %S --output-dir %T | filecheck %s CHECK: Published: Hello world doc diff --git a/tests/integration/features/source_code_traceability/_validation/01_req_references_non_existing_file/strictdoc.toml b/tests/integration/features/source_code_traceability/_validation/01_req_references_non_existing_file/strictdoc.toml index 943e69f5a..6707afe93 100644 --- a/tests/integration/features/source_code_traceability/_validation/01_req_references_non_existing_file/strictdoc.toml +++ b/tests/integration/features/source_code_traceability/_validation/01_req_references_non_existing_file/strictdoc.toml @@ -3,3 +3,7 @@ features = [ "REQUIREMENT_TO_SOURCE_TRACEABILITY", ] + +exclude_source_paths = [ + "test.itest" +] diff --git a/tests/integration/features/source_code_traceability/_validation/01_req_references_non_existing_file/test.itest b/tests/integration/features/source_code_traceability/_validation/01_req_references_non_existing_file/test.itest index 4901dacfb..143c1d9e1 100644 --- a/tests/integration/features/source_code_traceability/_validation/01_req_references_non_existing_file/test.itest +++ b/tests/integration/features/source_code_traceability/_validation/01_req_references_non_existing_file/test.itest @@ -1,2 +1,6 @@ +# +# @relation(SDOC-SRS-33, scope=file) +# + RUN: %expect_exit 1 %strictdoc export %S --output-dir %T | filecheck %s --dump-input=fail CHECK: error: Requirement REQ-001 references a file that does not exist: file.py. diff --git a/tests/integration/features/source_code_traceability/_validation/02_source_file_references_non_existing_req/strictdoc.toml b/tests/integration/features/source_code_traceability/_validation/02_source_file_references_non_existing_req/strictdoc.toml index 943e69f5a..6707afe93 100644 --- a/tests/integration/features/source_code_traceability/_validation/02_source_file_references_non_existing_req/strictdoc.toml +++ b/tests/integration/features/source_code_traceability/_validation/02_source_file_references_non_existing_req/strictdoc.toml @@ -3,3 +3,7 @@ features = [ "REQUIREMENT_TO_SOURCE_TRACEABILITY", ] + +exclude_source_paths = [ + "test.itest" +] diff --git a/tests/integration/features/source_code_traceability/_validation/02_source_file_references_non_existing_req/test.itest b/tests/integration/features/source_code_traceability/_validation/02_source_file_references_non_existing_req/test.itest index 9ecdaacf3..0e94a50a2 100644 --- a/tests/integration/features/source_code_traceability/_validation/02_source_file_references_non_existing_req/test.itest +++ b/tests/integration/features/source_code_traceability/_validation/02_source_file_references_non_existing_req/test.itest @@ -1,3 +1,7 @@ +# +# @relation(SDOC-SRS-33, scope=file) +# + RUN: %expect_exit 1 %strictdoc export %S --output-dir %T | filecheck %s --dump-input=fail CHECK: error: Source file file.py references a requirement that does not exist: REQ-002. diff --git a/tests/integration/features/source_code_traceability/_validation/03_relation_marker_has_duplicate_uid_general/test.itest b/tests/integration/features/source_code_traceability/_validation/03_relation_marker_has_duplicate_uid_general/test.itest index 58852a41a..63829b35d 100644 --- a/tests/integration/features/source_code_traceability/_validation/03_relation_marker_has_duplicate_uid_general/test.itest +++ b/tests/integration/features/source_code_traceability/_validation/03_relation_marker_has_duplicate_uid_general/test.itest @@ -1,4 +1,6 @@ -# @relation(SDOC-SRS-139, scope=file) +# +# @relation(SDOC-SRS-33, SDOC-SRS-139, scope=file) +# RUN: %expect_exit 1 %strictdoc export %S --output-dir %T | filecheck %s CHECK: error: @relation marker contains duplicate node UIDs: ['REQ-001']. Location: {{.*}}file.py:2. diff --git a/tests/integration/features/source_code_traceability/_validation/04_relation_marker_has_duplicate_uid_python/test.itest b/tests/integration/features/source_code_traceability/_validation/04_relation_marker_has_duplicate_uid_python/test.itest index 2a0de12e9..f8cd7f3f5 100644 --- a/tests/integration/features/source_code_traceability/_validation/04_relation_marker_has_duplicate_uid_python/test.itest +++ b/tests/integration/features/source_code_traceability/_validation/04_relation_marker_has_duplicate_uid_python/test.itest @@ -1,4 +1,6 @@ -# @relation(SDOC-SRS-139, scope=file) +# +# @relation(SDOC-SRS-33, SDOC-SRS-139, scope=file) +# RUN: %expect_exit 1 %strictdoc export %S --output-dir %T | filecheck %s --dump-input=fail CHECK: error: @relation marker contains duplicate node UIDs: ['REQ-001']. diff --git a/tests/integration/features/source_coverage/01_links_to_files/strictdoc.toml b/tests/integration/features/source_coverage/01_links_to_files/strictdoc.toml index 943e69f5a..d92b829a9 100644 --- a/tests/integration/features/source_coverage/01_links_to_files/strictdoc.toml +++ b/tests/integration/features/source_coverage/01_links_to_files/strictdoc.toml @@ -3,3 +3,7 @@ features = [ "REQUIREMENT_TO_SOURCE_TRACEABILITY", ] + +exclude_source_paths = [ + "test.itest" +] \ No newline at end of file diff --git a/tests/integration/features/source_coverage/01_links_to_files/test.itest b/tests/integration/features/source_coverage/01_links_to_files/test.itest index 4226a44b0..d620f42de 100644 --- a/tests/integration/features/source_coverage/01_links_to_files/test.itest +++ b/tests/integration/features/source_coverage/01_links_to_files/test.itest @@ -1,3 +1,7 @@ +# +# @relation(SDOC-SRS-35, scope=file) +# + RUN: %strictdoc export %S --output-dir %T | filecheck %s --dump-input=fail CHECK: Published: Hello world doc diff --git a/tests/unit_server/strictdoc/server/02_export_document_to_reqif/test_case.py b/tests/unit_server/strictdoc/server/02_export_document_to_reqif/test_case.py index 6682cbcc8..880c0a1ff 100644 --- a/tests/unit_server/strictdoc/server/02_export_document_to_reqif/test_case.py +++ b/tests/unit_server/strictdoc/server/02_export_document_to_reqif/test_case.py @@ -1,3 +1,7 @@ +""" +@relation(SDOC-SRS-72, scope=file) +""" + import os import re import shutil