CDash
CDash copied to clipboard
Hyperlink text in test's custom NamedMeasurement
I've add the following custom measurement to tests:
<NamedMeasurement type="text/string" name="Script">
<Value><![CDATA[<a href="https://url>link</a>]]></Value>
</NamedMeasurement>
Script
is a link to the actual test script. In the rendered test summary page, I see
Script <a href="https://url">link</a>
Ie, the link text appears, but it is not rendered.
Is there any way to format the Script
- whether by a NamedMeasurement
, or any other means - such that the link is active?
This is an intentional security measure. At the moment, I don't think there is a way in CTest/CDash to achieve the exact behavior you're hoping for.
A couple thoughts:
- We do have support for attaching links to builds. To do this, write a a text file containing the destination of your hyperlink, and make sure its filename ends in ".url". Upload this file using
ctest_upload
. - You can upload files and associate them with a test using the ATTACHED_FILES test property, but this doesn't currently support the ".url" trick mentioned above.
I'll leave this issue open as a feature request.