-
|
Hi. I'm evaluating StrictDoc's source code traceability and source code coverage functionality. I have a question regarding the specification and would appreciate clarification. BackgroundI've been testing the While testing this functionality, I observed that the line marker appears to reference the comment line itself (where the QuestionWhich behavior is this feature intended to implement according to the specification? Option A: The marker references the comment line where it is placed (current observed behavior) Current Behavior ObservedWhen testing the line marker functionality, the HTML coverage report highlights the comment line containing the
Test setup: environment:
[project]
title = "StrictDoc Documentation"
html_assets_strictdoc_dir = "assets"
features = [
# Stable features.
"TABLE_SCREEN",
"TRACEABILITY_SCREEN",
"DEEP_TRACEABILITY_SCREEN",
"MATHJAX",
# Experimental features are disabled by default.
# "REQIF",
# "STANDALONE_DOCUMENT_SCREEN",
# "REQUIREMENTS_COVERAGE_SCREEN",
"REQUIREMENT_TO_SOURCE_TRACEABILITY",
# "HTML2PDF",
]
def hello_world():
# @relation(REQ-901, scope=line)
print("hello world")Thank you for your time and any guidance you can provide. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
|
Hello @Mooan, thanks for starting this discussion. StrictDoc's backlog is a big pile of different kinds of work. Making line markers behave the way you describe is on my TODO list, but it has a low priority (there is not even an open ticket for it). In fact, the parser could support both behaviors:
The reason I haven’t prioritized this is that a line marker is just a special case of a range marker. So in the worst case, you can simply replace a line marker with a range marker. How important is this feature for you? I will not get to doing it myself within a few weeks but I could support you with contributing the option B parsing behavior. Note that there can be open questions related to the behavior of the Option B: what if marker is followed by several consecutive lines of code — does it mean that we want them all to be included? It seems to be nice but then it no longer feels like a |
Beta Was this translation helpful? Give feedback.
-
|
@Mooan I have given some thought to this topic and I think we could just implement it using your option B and remove the option A because indeed the option B is stronger for most of the real-world uses. Would you mind opening a Pull Request with your changes? |
Beta Was this translation helpful? Give feedback.


@Mooan I have given some thought to this topic and I think we could just implement it using your option B and remove the option A because indeed the option B is stronger for most of the real-world uses. Would you mind opening a Pull Request with your changes?