Allow custom tokens in any report element
Opened this issue · 0 comments
codito commented
Loggers today allow customizing specific elements of the final report with information available within a test run. E.g., MethodFormat
, TestCaseName
and earlier TestSuiteName
.
Can we provide a way to customize any of these with a set of well-known tokens?
E.g. dotnet test logger:"junit;$testsuite.name={assembly}{framework}"
will modify name
attribute in <testsuite>
element.
Every config parameter that starts with a $
is considered as an element in the report. Logger will attempt to replace it with values of the token.
List of tokens
{assembly}
represents name of the test assembly{framework}
is the target framework moniker used for the run, e.g., net80, net461{arch}
is the target architecture
Related