spekt - JunitXml.TestLogger 2.1.27

Xml logger for JUnit v3 compliant xml report when test is running with "dotnet test" or "dotnet vstest".

PM> Install-Package JunitXml.TestLogger -Version 2.1.27 -Source https://www.myget.org/F/spekt/api/v3/index.json

Copy to clipboard

> nuget.exe install JunitXml.TestLogger -Version 2.1.27 -Source https://www.myget.org/F/spekt/api/v3/index.json

Copy to clipboard

> dotnet add package JunitXml.TestLogger --version 2.1.27 --source https://www.myget.org/F/spekt/api/v3/index.json

Copy to clipboard
<PackageReference Include="JunitXml.TestLogger" Version="2.1.27" />
Copy to clipboard
source https://www.myget.org/F/spekt/api/v3/index.json

nuget JunitXml.TestLogger  ~> 2.1.27
Copy to clipboard

> choco install JunitXml.TestLogger --version 2.1.27 --source https://www.myget.org/F/spekt/api/v2

Copy to clipboard
Import-Module PowerShellGet
Register-PSRepository -Name "spekt" -SourceLocation "https://www.myget.org/F/spekt/api/v2"
Install-Module -Name "JunitXml.TestLogger" -RequiredVersion "2.1.27" -Repository "spekt" 
Copy to clipboard

[!IMPORTANT]
Development of v4.x and subsequent versions of the Junit logger is moved to the testlogger repository. Kindly report any new issues or contribute your patches in that repo.

JUnit Test Logger

JUnit xml report extension for Visual Studio Test Platform.

Build Status Build Status NuGet Downloads

Packages

Logger Stable Package Pre-release Package
JUnit NuGet MyGet Pre Release

If you're looking for Nunit, Xunit or appveyor loggers, visit following repositories:

Usage

The JUnit Test Logger generates xml reports in the Ant Junit Format, 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 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.

To use the logger, follow these steps:

  1. Add a reference to the JUnit Logger nuget package in test project

  2. Use the following command line in tests

    > dotnet test --logger:junit
    
  3. Test results are generated in the TestResults directory relative to the test.csproj

A path for the report file can be specified as follows:

> dotnet test --logger:"junit;LogFilePath=test-result.xml"

test-result.xml will be generated in the same directory as test.csproj.

Note: the arguments to --logger should be in quotes since ; is treated as a command delimiter in shell.

All common options to the logger are documented in the wiki. E.g. token expansion for {assembly} or {framework} in result file. If you are writing multiple files to the same directory or testing multiple frameworks, these options can prevent test logs from over-writing each other.

Customizing Junit XML Contents

There are several options to customize how the junit xml is populated. These options exist to provide additional control over the xml file so that the logged test results can be optimized for different CI/CD systems.

Platform Specific Recommendations:

After 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.

> dotnet test --test-adapter-path:. --logger:"junit;key1=value1;key2=value2"

MethodFormat

This 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.

We recommend this option for GitLab users.

Allowed Values
  • MethodFormat=Default
  • MethodFormat=Class
  • MethodFormat=Full

FailureBodyFormat

When 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.

We recommend this option for GitLab and CircleCI users.

Allowed Values
  • FailureBodyFormat=Default
  • FailureBodyFormat=Verbose

License

MIT

  • .NETFramework 4.5: 4.5.0.0
  • .NETStandard 1.0: 1.0.0.0

Owners

Arun Mahapatra

Authors

Siphonophora, codito, faizan2304, smadala, lahma

Project URL

https://github.com/spekt/junit.testlogger

License

Unknown

Info

22646 total downloads
133 downloads for version 2.1.27
Download (24.54 KB)
Found on the current feed only

Package history

Version Size Last updated Downloads Mirrored?
8.1.1-pre.558 148.11 KB Sun, 01 Nov 2026 03:39:01 GMT 4
8.1.1-pre.557 148.12 KB Sun, 01 Nov 2026 03:38:07 GMT 3
8.1.1-pre.551 148.11 KB Sat, 24 Oct 2026 06:52:34 GMT 5
8.1.1-pre.549 148.16 KB Sat, 24 Oct 2026 06:07:51 GMT 6
8.1.1-pre.548 148.16 KB Sat, 24 Oct 2026 05:56:50 GMT 6
8.1.1-pre.547 148.13 KB Sat, 24 Oct 2026 05:52:38 GMT 4
8.1.1-pre.545 147.98 KB Sat, 24 Oct 2026 05:39:21 GMT 5
8.1.1-pre.543 147.96 KB Sat, 24 Oct 2026 05:17:52 GMT 5
8.1.1-pre.541 147.96 KB Wed, 07 Oct 2026 11:00:16 GMT 10
8.1.1-pre.537 148.12 KB Thu, 03 Sep 2026 16:25:24 GMT 14
8.1.0 148.08 KB Sat, 24 Oct 2026 05:47:32 GMT 5
8.0.1-pre.529 93.81 KB Fri, 31 Jul 2026 02:08:01 GMT 23
8.0.1-pre.528 93.82 KB Fri, 31 Jul 2026 02:07:46 GMT 21
8.0.1-pre.523 93.82 KB Sat, 20 Jun 2026 03:42:04 GMT 41
8.0.1-pre.522 93.83 KB Sat, 20 Jun 2026 03:41:58 GMT 31
8.0.1-pre.520 93.81 KB Sat, 20 Jun 2026 03:41:00 GMT 32
8.0.1-pre.516 93.83 KB Sun, 01 Mar 2026 11:35:16 GMT 47
8.0.1-pre.515 93.81 KB Sun, 01 Mar 2026 11:34:48 GMT 33
8.0.1-pre.509 93.83 KB Sun, 01 Feb 2026 10:54:11 GMT 62
8.0.1-pre.508 93.79 KB Sun, 01 Feb 2026 10:53:50 GMT 50
8.0.1-pre.504 93.65 KB Fri, 09 Jan 2026 14:42:05 GMT 52
8.0.1-pre.500 93.58 KB Thu, 01 Jan 2026 04:27:09 GMT 65
8.0.1-pre.499 93.58 KB Thu, 01 Jan 2026 04:26:24 GMT 48
8.0.1-pre.492 93.58 KB Sun, 21 Dec 2025 03:12:03 GMT 59
8.0.0 93.72 KB Fri, 09 Jan 2026 14:43:13 GMT 53
7.1.1-pre.485 93.59 KB Sat, 13 Dec 2025 16:20:04 GMT 58
7.1.0 93.56 KB Sat, 13 Dec 2025 16:05:30 GMT 74
7.0.3-pre.483 93.44 KB Sat, 13 Dec 2025 15:05:53 GMT 56
7.0.3-pre.474 92.91 KB Sun, 02 Nov 2025 07:59:34 GMT 64
7.0.2 90.01 KB Wed, 08 Oct 2025 14:43:44 GMT 92
7.0.2-pre.466 89.99 KB Wed, 08 Oct 2025 14:23:45 GMT 101
7.0.2-pre.464 88.97 KB Sat, 04 Oct 2025 07:19:38 GMT 105
7.0.1 88.93 KB Sat, 04 Oct 2025 07:05:02 GMT 94
7.0.1-pre.462 88.9 KB Sat, 04 Oct 2025 07:02:20 GMT 97
7.0.1-pre.460 88.91 KB Sat, 04 Oct 2025 06:36:10 GMT 108
6.1.1-pre.452 88.63 KB Mon, 22 Sep 2025 16:08:18 GMT 111
6.1.1-pre.447 88.62 KB Sat, 20 Sep 2025 14:58:13 GMT 122
6.1.1-pre.444 88.55 KB Sat, 20 Sep 2025 13:13:24 GMT 132
6.1.1-pre.429 84.63 KB Sun, 07 Sep 2025 01:39:24 GMT 126
6.1.1-pre.428 84.63 KB Sun, 07 Sep 2025 01:39:03 GMT 112
6.1.1-pre.425 84.63 KB Sun, 07 Sep 2025 01:19:59 GMT 133
6.1.1-pre.414 74.14 KB Thu, 17 Apr 2025 13:21:40 GMT 142
6.1.1-pre.412 74.13 KB Tue, 08 Apr 2025 14:49:27 GMT 142
6.1.1-pre.411 74.11 KB Tue, 08 Apr 2025 14:43:44 GMT 143
6.1.1-pre.409 74.11 KB Tue, 08 Apr 2025 14:00:48 GMT 153
6.1.0 74.08 KB Sat, 15 Mar 2025 02:25:14 GMT 134
6.0.1-pre.386 73.96 KB Sat, 15 Mar 2025 02:14:20 GMT 133
6.0.1-pre.384 73.96 KB Fri, 14 Mar 2025 17:55:09 GMT 123
6.0.1-pre.381 73.97 KB Fri, 14 Mar 2025 12:03:24 GMT 147
6.0.1-pre.379 74.44 KB Thu, 13 Mar 2025 00:52:02 GMT 147
6.0.1-pre.376 74.28 KB Fri, 07 Mar 2025 10:40:48 GMT 119
6.0.0 74.24 KB Fri, 14 Feb 2025 13:48:29 GMT 134
5.0.1-pre.369 74.11 KB Thu, 13 Feb 2025 15:58:46 GMT 128
5.0.1-pre.362 72.35 KB Wed, 12 Feb 2025 16:52:23 GMT 133
5.0.1-pre.361 72.35 KB Wed, 12 Feb 2025 16:38:36 GMT 141
5.0.1-pre.360 72.34 KB Wed, 12 Feb 2025 16:34:37 GMT 105
5.0.1-pre.358 72.35 KB Wed, 12 Feb 2025 15:33:45 GMT 122
5.0.1-pre.355 72.35 KB Tue, 11 Feb 2025 12:22:21 GMT 126
5.0.1-pre.353 70.33 KB Sat, 01 Feb 2025 05:41:46 GMT 141
5.0.1-pre.351 70.31 KB Sat, 01 Feb 2025 05:13:22 GMT 136
5.0.1-pre.349 70.32 KB Fri, 31 Jan 2025 13:13:02 GMT 133
5.0.1-pre.346 70.32 KB Mon, 20 Jan 2025 12:00:12 GMT 131
5.0.1-pre.345 70.34 KB Mon, 20 Jan 2025 11:59:56 GMT 118
5.0.1-pre.342 70.31 KB Tue, 14 Jan 2025 01:04:57 GMT 123
5.0.1-pre.339 70.32 KB Mon, 13 Jan 2025 15:24:25 GMT 143
5.0.1-pre.336 70.32 KB Mon, 13 Jan 2025 12:51:37 GMT 122
5.0.1-pre.333 70.32 KB Mon, 06 Jan 2025 12:38:44 GMT 134
5.0.1-pre.330 70.33 KB Wed, 01 Jan 2025 10:43:28 GMT 144
5.0.1-pre.329 70.34 KB Mon, 30 Dec 2024 12:22:20 GMT 112
5.0.1-pre.328 70.34 KB Mon, 30 Dec 2024 12:22:00 GMT 126
5.0.1-pre.327 70.34 KB Mon, 30 Dec 2024 12:21:54 GMT 128
5.0.0 70.3 KB Thu, 19 Dec 2024 14:10:20 GMT 120
4.1.1-pre.321 70.11 KB Thu, 19 Dec 2024 14:02:02 GMT 120
4.1.1-pre.320 70.12 KB Tue, 17 Dec 2024 15:58:26 GMT 126
4.1.1-pre.305 69.56 KB Mon, 18 Nov 2024 07:14:25 GMT 137
4.1.1-pre.300 69.57 KB Thu, 07 Nov 2024 16:41:31 GMT 139
4.1.1-pre.297 69.57 KB Mon, 14 Oct 2024 10:55:30 GMT 146
4.1.0 69.54 KB Sat, 12 Oct 2024 03:51:19 GMT 141
4.0.290 69.43 KB Sat, 12 Oct 2024 03:15:36 GMT 126
4.0.289 69.44 KB Sat, 12 Oct 2024 01:34:19 GMT 133
4.0.288 69.42 KB Fri, 11 Oct 2024 15:10:43 GMT 127
4.0.287 69.43 KB Fri, 11 Oct 2024 14:33:34 GMT 132
4.0.286 69.43 KB Thu, 10 Oct 2024 18:29:50 GMT 126
4.0.282 69.42 KB Mon, 07 Oct 2024 09:48:07 GMT 132
4.0.281 69.42 KB Mon, 07 Oct 2024 09:47:28 GMT 122
4.0.280 69.42 KB Mon, 07 Oct 2024 09:47:10 GMT 133
4.0.275 69.42 KB Wed, 02 Oct 2024 03:38:21 GMT 112
4.0.274 69.41 KB Wed, 02 Oct 2024 03:37:55 GMT 126
4.0.272 69.44 KB Sun, 29 Sep 2024 07:40:04 GMT 131
4.0.270 69.27 KB Mon, 23 Sep 2024 13:47:56 GMT 120
4.0.259 69.28 KB Mon, 12 Aug 2024 15:34:13 GMT 138
4.0.255 69.26 KB Sun, 28 Jul 2024 11:06:24 GMT 124
4.0.255-pre.293 69.47 KB Sat, 12 Oct 2024 03:43:01 GMT 123
4.0.254 69.25 KB Sun, 28 Jul 2024 10:53:51 GMT 149
4.0.253 69.01 KB Sun, 28 Jul 2024 10:48:09 GMT 127
4.0.252 69.03 KB Sun, 28 Jul 2024 10:47:25 GMT 137
4.0.251 69.02 KB Sun, 28 Jul 2024 10:46:47 GMT 149
4.0.250 69.07 KB Sun, 28 Jul 2024 10:46:13 GMT 136
4.0.249 69.08 KB Sun, 28 Jul 2024 10:27:36 GMT 121
4.0.248 69.08 KB Sun, 28 Jul 2024 10:27:17 GMT 129
4.0.239 68.92 KB Mon, 08 Jul 2024 07:29:49 GMT 133
4.0.237 68.93 KB Mon, 01 Jul 2024 11:47:16 GMT 133
4.0.235 68.93 KB Mon, 01 Jul 2024 10:56:46 GMT 140
4.0.234 68.93 KB Mon, 01 Jul 2024 10:56:19 GMT 121
4.0.233 68.92 KB Mon, 01 Jul 2024 10:56:03 GMT 129
4.0.228 68.89 KB Thu, 27 Jun 2024 11:23:26 GMT 121
4.0.226 68.92 KB Wed, 26 Jun 2024 10:52:58 GMT 107
4.0.223 68.15 KB Mon, 24 Jun 2024 11:03:46 GMT 103
4.0.220 68.15 KB Mon, 24 Jun 2024 10:27:10 GMT 128
4.0.217 68.13 KB Mon, 24 Jun 2024 06:41:06 GMT 124
4.0.216 68.15 KB Mon, 24 Jun 2024 06:40:32 GMT 115
4.0.213 68.17 KB Mon, 24 Jun 2024 04:48:59 GMT 130
4.0.207 68.15 KB Sun, 23 Jun 2024 11:12:50 GMT 117
4.0.205 68.15 KB Sat, 22 Jun 2024 18:45:22 GMT 132
4.0.201 68.14 KB Sat, 22 Jun 2024 03:57:53 GMT 115
4.0.200 68.13 KB Fri, 21 Jun 2024 20:34:18 GMT 122
4.0.197 68.14 KB Fri, 21 Jun 2024 19:38:26 GMT 122
4.0.195 68.15 KB Fri, 21 Jun 2024 19:30:23 GMT 108
4.0.192 68.14 KB Fri, 21 Jun 2024 19:20:57 GMT 127
4.0.191 68.15 KB Fri, 21 Jun 2024 18:47:59 GMT 141
4.0.190 68.13 KB Mon, 17 Jun 2024 11:32:54 GMT 138
4.0.189 68.13 KB Mon, 17 Jun 2024 11:27:27 GMT 130
4.0.188 68.15 KB Mon, 17 Jun 2024 11:26:30 GMT 145
4.0.187 68.13 KB Mon, 17 Jun 2024 11:18:55 GMT 132
4.0.186 68.13 KB Mon, 17 Jun 2024 11:16:06 GMT 124
4.0.185 68.11 KB Mon, 17 Jun 2024 11:13:45 GMT 135
4.0.182 68.12 KB Mon, 17 Jun 2024 11:04:18 GMT 116
3.1.14 74.17 KB Mon, 17 Jun 2024 11:06:01 GMT 126
3.1.13 74.17 KB Sat, 10 Feb 2024 01:49:54 GMT 121
3.1.12 74.18 KB Sat, 10 Feb 2024 01:05:30 GMT 129
3.1.10 73.69 KB Thu, 08 Feb 2024 15:50:25 GMT 135
3.1.8 69.84 KB Tue, 08 Aug 2023 21:08:34 GMT 134
3.1.3 69.83 KB Tue, 04 Jul 2023 17:20:38 GMT 108
3.0.140 69.83 KB Tue, 08 Aug 2023 21:05:33 GMT 139
3.0.135 69.83 KB Wed, 12 Jul 2023 03:01:03 GMT 147
3.0.134 69.83 KB Tue, 04 Jul 2023 17:19:16 GMT 148
3.0.133 69.83 KB Tue, 04 Jul 2023 11:30:20 GMT 139
3.0.131 69.83 KB Tue, 04 Jul 2023 11:25:34 GMT 130
3.0.130 69.83 KB Tue, 04 Jul 2023 08:44:54 GMT 121
3.0.125 66.52 KB Mon, 30 Jan 2023 16:33:06 GMT 145
3.0.124 66.52 KB Sun, 29 Jan 2023 13:04:35 GMT 127
3.0.122 66.52 KB Sat, 28 Jan 2023 18:15:11 GMT 120
3.0.115 66.53 KB Sat, 25 Jun 2022 15:34:58 GMT 131
3.0.114 66.53 KB Sun, 03 Apr 2022 16:38:37 GMT 131
3.0.111 63.4 KB Sat, 04 Dec 2021 21:18:58 GMT 109
3.0.110 63.4 KB Sat, 04 Dec 2021 15:55:57 GMT 116
3.0.104 62.14 KB Tue, 27 Jul 2021 20:19:07 GMT 109
3.0.102 37.9 KB Mon, 26 Jul 2021 16:13:55 GMT 119
3.0.99 37.89 KB Thu, 27 May 2021 16:38:36 GMT 121
3.0.98 37.89 KB Tue, 25 May 2021 16:56:31 GMT 123
3.0.95 37.71 KB Tue, 25 May 2021 16:39:01 GMT 130
3.0.93 38.16 KB Sun, 18 Apr 2021 16:21:59 GMT 110
3.0.88 37.72 KB Thu, 08 Apr 2021 20:52:49 GMT 127
3.0.87 37.72 KB Wed, 07 Apr 2021 20:24:08 GMT 126
2.1.83 35.73 KB Wed, 27 Jan 2021 07:02:40 GMT 138
2.1.82 35.73 KB Wed, 06 Jan 2021 01:12:36 GMT 113
2.1.81 35.73 KB Tue, 05 Jan 2021 18:50:08 GMT 125
2.1.79 35.68 KB Sun, 27 Sep 2020 02:28:53 GMT 132
2.1.78 35.68 KB Sun, 27 Sep 2020 00:09:09 GMT 114
2.1.76 35.68 KB Fri, 25 Sep 2020 22:57:13 GMT 123
2.1.75 35.59 KB Wed, 23 Sep 2020 12:23:53 GMT 137
2.1.73 35.58 KB Mon, 21 Sep 2020 00:41:52 GMT 131
2.1.71 25.46 KB Wed, 16 Sep 2020 12:57:10 GMT 129
2.1.70 34.66 KB Sun, 06 Sep 2020 13:42:57 GMT 109
2.1.68 34.66 KB Sat, 05 Sep 2020 19:49:16 GMT 123
2.1.66 34.66 KB Sat, 05 Sep 2020 19:38:34 GMT 114
2.1.62 34.66 KB Sat, 05 Sep 2020 19:03:11 GMT 129
2.1.60 34.67 KB Sat, 05 Sep 2020 18:56:40 GMT 112
2.1.54 34.64 KB Sat, 29 Aug 2020 16:36:42 GMT 122
2.1.52 34.64 KB Sat, 29 Aug 2020 16:31:53 GMT 123
2.1.50 34.63 KB Sat, 29 Aug 2020 16:24:51 GMT 120
2.1.48 34.65 KB Sat, 29 Aug 2020 15:58:52 GMT 124
2.1.44 24.54 KB Fri, 22 May 2020 22:27:43 GMT 125
2.1.42 24.54 KB Fri, 22 May 2020 22:15:28 GMT 117
2.1.40 25.46 KB Fri, 22 May 2020 21:58:45 GMT 132
2.1.38 25.46 KB Fri, 22 May 2020 21:55:44 GMT 130
2.1.36 25.12 KB Tue, 19 May 2020 01:56:49 GMT 112
2.1.34 25.03 KB Fri, 15 May 2020 13:37:48 GMT 120
2.1.33 24.53 KB Mon, 20 Apr 2020 17:29:27 GMT 137
2.1.32 24.54 KB Sun, 19 Apr 2020 18:00:00 GMT 128
2.1.30 24.53 KB Sat, 15 Feb 2020 21:58:31 GMT 133
2.1.29 23.74 KB Sat, 15 Feb 2020 21:17:48 GMT 111
2.1.28 23.14 KB Sat, 15 Feb 2020 21:16:38 GMT 138
2.1.27 24.54 KB Sat, 15 Feb 2020 20:53:44 GMT 133
2.1.25 24.54 KB Sat, 15 Feb 2020 20:41:16 GMT 131
2.1.23 24.54 KB Wed, 12 Feb 2020 23:18:18 GMT 133
2.1.21 24.54 KB Wed, 12 Feb 2020 22:37:38 GMT 142
2.1.19 24.54 KB Mon, 10 Feb 2020 03:31:51 GMT 109
2.1.17 24.5 KB Sun, 09 Feb 2020 21:44:39 GMT 113
2.1.15 23.74 KB Tue, 01 Oct 2019 01:56:25 GMT 144
2.1.11 23.13 KB Thu, 26 Sep 2019 13:57:32 GMT 148
2.1.10 23.14 KB Wed, 25 Sep 2019 16:15:45 GMT 142
2.1.8 23.13 KB Wed, 25 Sep 2019 15:57:03 GMT 138
2.1.7 23.13 KB Wed, 25 Sep 2019 15:47:12 GMT 131
2.1.6 23.11 KB Sun, 15 Sep 2019 15:57:42 GMT 126
2.1.5 23.13 KB Fri, 06 Sep 2019 13:18:01 GMT 131
2.1.4 23.11 KB Sun, 15 Sep 2019 15:38:51 GMT 114
2.1.3 23.13 KB Fri, 06 Sep 2019 13:50:18 GMT 121
2.1.2 21.8 KB Tue, 03 Sep 2019 00:53:35 GMT 125
2.1.1 23.13 KB Fri, 06 Sep 2019 13:36:26 GMT 141