Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow custom tokens in any report element #86

Open
codito opened this issue Jun 25, 2024 · 0 comments
Open

Allow custom tokens in any report element #86

codito opened this issue Jun 25, 2024 · 0 comments
Labels
enhancement New feature or request logger: core Core test logger related issues

Comments

@codito
Copy link
Contributor

codito commented Jun 25, 2024

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

@codito codito added enhancement New feature or request logger: core Core test logger related issues labels Jun 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request logger: core Core test logger related issues
Projects
None yet
Development

No branches or pull requests

1 participant