Draft
Support custom source and request attributes in JUnit XML report#89
source and request attributes in JUnit XML report#89Conversation
- Add SourceType and RequestName properties to TestResult model - Set SourceType='inline' and RequestName for inline tests in TestFactory - Set SourceType='csx' for CSX tests in Registrator - Propagate SourceType and RequestName in Tester when creating Passed/Failed results - Add sourceType and requestName parameters to JUnitXmlWriter.WriteTestCase - Pass SourceType and RequestName from TestResult to writer in JUnitXmlTestResultsSummaryReporter - Add tests for new attributes in JUnitXmlWriterShould and JUnitXmlTestResultsSummaryReporterShould Co-authored-by: Burgyn <5930822+Burgyn@users.noreply.github.com> Agent-Logs-Url: https://github.com/Kros-sk/TeaPie/sessions/9641a5f3-e740-4ba9-ad44-ceb0f42b5fa4
Copilot
AI
changed the title
[WIP] Add support for custom attributes in JUnit XML report
Support custom Mar 22, 2026
source and request attributes in JUnit XML report
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
JUnit XML reports lack metadata to distinguish inline tests (from
.httpfiles) from.csxscript tests, blocking external tooling (IDE extensions) from correlating test results with HTTP requests.Changes
TestResult— Add nullableSourceTypeandRequestNameproperties to the base recordTestFactory— SetSourceType = "inline"andRequestNamefromRequestExecutionContext.Namefor inline testsRegistrator— SetSourceType = "csx"for script-registered testsTester— Propagate both fields when convertingNotRun→Passed/FailedJUnitXmlWriter.WriteTestCase— Accept optionalsourceType/requestName, emit as XML attributes when non-nullJUnitXmlTestResultsSummaryReporter— ThreadSourceType/RequestNamefrom eachTestResultvariant to the writerExample output
Attributes are omitted entirely when not set, so existing consumers are unaffected.
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
example.com/usr/share/dotnet/dotnet /usr/share/dotnet/dotnet exec --runtimeconfig /home/REDACTED/work/TeaPie/TeaPie/tests/TeaPie.Tests/bin/Debug/net8.0/TeaPie.Tests.runtimeconfig.json --depsfile /home/REDACTED/work/TeaPie/TeaPie/tests/TeaPie.Tests/bin/Debug/net8.0/TeaPie.Tests.deps.json /home/REDACTED/work/TeaPie/TeaPie/tests/TeaPie.Tests/bin/Debug/net8.0/testhost.dll --port 39849 --endpoint 127.0.0.1:039849 --role client --parentprocessid 4830 --telemetryoptedin false(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.