You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In our traceability flow, Test Records (TRs) are generated automatically and ID'ed by their location on disk:
.. item:: TR-lorem/ipsum/sim_1 Test record for lorem/ipsum/sim_1
:result: PASSED
While the links (many-to-many) between Testcases (TCs) and TRs are created manually inside the TC:
.. item:: TC-lorem/ipsum-1 Testcase for lorem/ipsum
:tested_by:
TR-lorem/ipsum/sim_1
TR-lorem/ipsum/sim_2
This means that while the corresponding simulation has not been run, the TR does not exist, and we get not one, but two different warnings from Sphinx:
WARNING: Item 'TR-lorem/ipsum/sim_1' has no reference to source document.
/<path>/lorem.rst:42: WARNING: Traceability: cannot link to 'TR-lorem/ipsum/sim_1', item is not defined
Which brings me to my questions:
Would it be possible to omit the first warning? The second one is much more useful.
Would it be possible to also suppress the second one, either through a configuration or (ideally) a command-line argument? We'd like to disable it during development and enable it for reviews.
The text was updated successfully, but these errors were encountered:
For first point the warning is generated where encounted. Do you want to cache it and then eliminate (group) it only in case there is reverse duplicate?
I can respect the choice of delegating this to another tool, so fine by me.
For first point the warning is generated where encounted. Do you want to cache it and then eliminate (group) it only in case there is reverse duplicate?
I'm afraid I do not understand the question.
I think the first warning is generated by Sphinx itself, as I get the same one for broken links in the text. It is, unfortunately, entirely unhelpful in pinpointing the root cause of the problem. The second warning is much better in that regard. I would have preferred to get only that one.
As for the implementation, I'm entirely agnostic. If the target does not exist, it might be possible to not create the link at all. Gobbling that particular warning would also work.
This issue is related to #320.
In our traceability flow, Test Records (TRs) are generated automatically and ID'ed by their location on disk:
While the links (many-to-many) between Testcases (TCs) and TRs are created manually inside the TC:
This means that while the corresponding simulation has not been run, the TR does not exist, and we get not one, but two different warnings from Sphinx:
Which brings me to my questions:
The text was updated successfully, but these errors were encountered: