{"id":22988996,"url":"https://github.com/spekt/junit.testlogger","last_synced_at":"2025-08-13T20:33:41.227Z","repository":{"id":35133359,"uuid":"203477902","full_name":"spekt/junit.testlogger","owner":"spekt","description":"JUnit test logger for vstest platform","archived":false,"fork":false,"pushed_at":"2024-02-10T01:46:16.000Z","size":392,"stargazers_count":71,"open_issues_count":19,"forks_count":14,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-05-22T21:11:08.850Z","etag":null,"topics":["dotnet","dotnet-test","junit","logger","nuget","test-reporting","vstest"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/spekt.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2019-08-21T00:55:04.000Z","updated_at":"2024-04-27T09:41:42.000Z","dependencies_parsed_at":"2024-02-10T02:23:57.330Z","dependency_job_id":null,"html_url":"https://github.com/spekt/junit.testlogger","commit_stats":{"total_commits":86,"total_committers":9,"mean_commits":9.555555555555555,"dds":0.5116279069767442,"last_synced_commit":"3edf68f25c980cee5faa0d9d3383ae199fe46446"},"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spekt%2Fjunit.testlogger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spekt%2Fjunit.testlogger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spekt%2Fjunit.testlogger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spekt%2Fjunit.testlogger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/spekt","download_url":"https://codeload.github.com/spekt/junit.testlogger/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":229780089,"owners_count":18122920,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dotnet","dotnet-test","junit","logger","nuget","test-reporting","vstest"],"created_at":"2024-12-15T04:15:41.138Z","updated_at":"2024-12-15T04:15:41.622Z","avatar_url":"https://github.com/spekt.png","language":"C#","readme":"\u003e [!IMPORTANT]  \n\u003e Development of v4.x and subsequent versions of the Junit logger is moved to the [testlogger](https://github.com/spekt/testlogger) repository.\n\u003e Kindly report any new issues or contribute your patches in that repo.\n\n# JUnit Test Logger\n\nJUnit xml report extension for [Visual Studio Test Platform](https://github.com/microsoft/vstest).\n\n[![Build Status](https://travis-ci.com/spekt/junit.testlogger.svg?branch=master)](https://travis-ci.com/spekt/junit.testlogger)\n[![Build Status](https://ci.appveyor.com/api/projects/status/gsiaqo5g4gfk76kq?svg=true)](https://ci.appveyor.com/project/spekt/junit-testlogger)\n[![NuGet Downloads](https://img.shields.io/nuget/dt/JunitXml.TestLogger)](https://www.nuget.org/packages/JunitXml.TestLogger/)\n\n## Packages\n\n| Logger | Stable Package | Pre-release Package |\n| ------ | -------------- | ------------------- |\n| JUnit | [![NuGet](https://img.shields.io/nuget/v/JUnitXml.TestLogger.svg)](https://www.nuget.org/packages/JUnitXml.TestLogger/) | [![MyGet Pre Release](https://img.shields.io/myget/spekt/vpre/junitxml.testlogger.svg)](https://www.myget.org/feed/spekt/package/nuget/JunitXml.TestLogger) |\n\nIf you're looking for `Nunit`, `Xunit` or `appveyor` loggers, visit following repositories:\n\n- \u003chttps://github.com/spekt/nunit.testlogger\u003e\n- \u003chttps://github.com/spekt/xunit.testlogger\u003e\n- \u003chttps://github.com/spekt/appveyor.testlogger\u003e\n\n## Usage\n\nThe JUnit Test Logger generates xml reports in the [Ant Junit Format](https://github.com/windyroad/JUnit-Schema), which the JUnit 5 repository refers to as the de-facto standard. While the generated xml complies with that schema, it does not contain values in every case. For example, the logger currently does not log any `properties`. Please [refer to a sample file](docs/assets/TestResults.xml) to see an example. If you find that the format is missing data required by your CI/CD system, please open an issue or PR.\n\nTo use the logger, follow these steps:\n\n1. Add a reference to the [JUnit Logger](https://www.nuget.org/packages/JUnitXml.TestLogger) nuget package in test project\n2. Use the following command line in tests\n\n   ```none\n   \u003e dotnet test --logger:junit\n   ```\n\n3. Test results are generated in the `TestResults` directory relative to the `test.csproj`\n\nA path for the report file can be specified as follows:\n\n```none\n\u003e dotnet test --logger:\"junit;LogFilePath=test-result.xml\"\n```\n\n`test-result.xml` will be generated in the same directory as `test.csproj`.\n\n**Note:** the arguments to `--logger` should be in quotes since `;` is treated as a command delimiter in shell.\n\nAll common options to the logger are documented [in the wiki][config-wiki]. E.g.\ntoken expansion for `{assembly}` or `{framework}` in result file. If you are writing multiple\nfiles to the same directory or testing multiple frameworks, these options can prevent\ntest logs from over-writing each other.\n\n[config-wiki]: https://github.com/spekt/testlogger/wiki/Logger-Configuration\n\n### Customizing Junit XML Contents\n\nThere are several options to customize how the junit xml is populated. These options exist to\nprovide additional control over the xml file so that the logged test results can be optimized for different CI/CD systems.\n\nPlatform Specific Recommendations:\n\n- [GitLab CI/CD Recommendation](/docs/gitlab-recommendation.md)\n- [Jenkins Recommendation](/docs/jenkins-recommendation.md)\n- [CircleCI Recommendation](/docs/circleci-recommendation.md)\n\nAfter the logger name, command line arguments are provided as key/value pairs with the following general format. **Note** the quotes are required and key names are case sensitive.\n\n```none\n\u003e dotnet test --test-adapter-path:. --logger:\"junit;key1=value1;key2=value2\"\n```\n\n#### MethodFormat\n\nThis option alters the `testcase name` attribute. By default, this contains only the method. Class, will add the class to the name. Full, will add the assembly/namespace/class to the method.\n\nWe recommend this option for [GitLab](/docs/gitlab-recommendation.md) users.\n\n##### Allowed Values\n\n- MethodFormat=Default\n- MethodFormat=Class\n- MethodFormat=Full\n\n#### FailureBodyFormat\n\nWhen set to default, the body of a `failure` element will contain only the exception which is captured by vstest. Verbose will prepend the body with 'Expected X, Actual Y' similar to how it is displayed in the standard test output. 'Expected X, Actual Y' are normally only contained in the failure message. Additionally, Verbose will include standard output from the test in the failure message.\n\nWe recommend this option for [GitLab](/docs/gitlab-recommendation.md) and [CircleCI](/docs/circleci-recommendation.md) users.\n\n##### Allowed Values\n\n- FailureBodyFormat=Default\n- FailureBodyFormat=Verbose\n\n## License\n\nMIT\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspekt%2Fjunit.testlogger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspekt%2Fjunit.testlogger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspekt%2Fjunit.testlogger/lists"}