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
I want to have the traces & metrics generated by my application when running unit tests recorded just like in production with the results visible in the same tools.
What is the expected behavior?
New package is available which enables open telemetry to be add to the test project with minimal effort on test projects.
ITestFramework.CreateTestSessionAsync implemented to start the activity for the test suite with the necessary tags
ITestFramework.CloseTestSessionAsync implemented to stop the activity for the test suite
ITestFramework.ExecuteRequestAsync implemented to set the test result as passed, any other appropriate tags & end it when IData is PassedTestNodeStateProperty
ITestFramework.ExecuteRequestAsync implemented to set the test result as failed, any other appropriate tags & end it when IData is FailedTestNodeStateProperty
ITestFramework.ExecuteRequestAsync implemented to set the test result as skipped, any other appropriate tags & end it when IData is SkippedTestNodeStateProperty
ITestFramework.ExecuteRequestAsync implemented to create a new span with the appropriate tags when IData is InProgressTestNodeStateProperty
Which alternative solutions or features have you considered?
thompson-tomo
changed the title
[feature request] release a Microsoft.Extensions.TestFX package
[feature request] release a OpenTelemetry.Extensions.TestFX package
Jun 7, 2025
Thanks for that @martincostello I think from a users perspective if the interface was identical or as close as possible to OpenTelemetry.Extensions.Hosting that would be best. That way we can have seperate resource package to add the git information and any other desired info.
Note I have just linked 2 issues to extend the attributes so that desired info can be captured.
Uh oh!
There was an error while loading. Please reload this page.
Component
None
Is your feature request related to a problem?
I want to have the traces & metrics generated by my application when running unit tests recorded just like in production with the results visible in the same tools.
What is the expected behavior?
New package is available which enables open telemetry to be add to the test project with minimal effort on test projects.
ITestFramework.CreateTestSessionAsync
implemented to start the activity for the test suite with the necessary tagsITestFramework.CloseTestSessionAsync
implemented to stop the activity for the test suiteITestFramework.ExecuteRequestAsync
implemented to set the test result as passed, any other appropriate tags & end it when IData isPassedTestNodeStateProperty
ITestFramework.ExecuteRequestAsync
implemented to set the test result as failed, any other appropriate tags & end it when IData isFailedTestNodeStateProperty
ITestFramework.ExecuteRequestAsync
implemented to set the test result as skipped, any other appropriate tags & end it when IData isSkippedTestNodeStateProperty
ITestFramework.ExecuteRequestAsync
implemented to create a new span with the appropriate tags when IData isInProgressTestNodeStateProperty
Which alternative solutions or features have you considered?
Manually instrument it within my projects.
Additional context
https://learn.microsoft.com/en-au/dotnet/core/testing/microsoft-testing-platform-intro
The text was updated successfully, but these errors were encountered: