spekt - JunitXml.TestLogger 4.0.217
Xml logger for JUnit v5 compliant xml report when test is running with "dotnet test" or "dotnet vstest".
PM> Install-Package JunitXml.TestLogger -Version 4.0.217 -Source https://www.myget.org/F/spekt/api/v3/index.json
> nuget.exe install JunitXml.TestLogger -Version 4.0.217 -Source https://www.myget.org/F/spekt/api/v3/index.json
> dotnet add package JunitXml.TestLogger --version 4.0.217 --source https://www.myget.org/F/spekt/api/v3/index.json
source https://www.myget.org/F/spekt/api/v3/index.json
nuget JunitXml.TestLogger ~> 4.0.217
Copy to clipboard
> choco install JunitXml.TestLogger --version 4.0.217 --source https://www.myget.org/F/spekt/api/v2
Import-Module PowerShellGet
Register-PSRepository -Name "spekt" -SourceLocation "https://www.myget.org/F/spekt/api/v2"
Install-Module -Name "JunitXml.TestLogger" -RequiredVersion "4.0.217" -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.
Packages
Logger | Stable Package | Pre-release Package |
---|---|---|
JUnit |
If you're looking for Nunit
, Xunit
or appveyor
loggers, visit following repositories:
- https://github.com/spekt/nunit.testlogger
- https://github.com/spekt/xunit.testlogger
- https://github.com/spekt/appveyor.testlogger
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:
Add a reference to the JUnit Logger nuget package in test project
Use the following command line in tests
> dotnet test --logger:junit
Test results are generated in the
TestResults
directory relative to thetest.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.6: 4.6.0.0
- .NETStandard 1.5: 1.5.0.0
OwnersArun Mahapatra |
AuthorsSiphonophora, codito, faizan2304, smadala, lahma |
Project URLhttps://github.com/spekt/junit.testlogger |
LicenseUnknown |
Info332 total downloads |
1 downloads for version 4.0.217 |
Download (68.13 KB) |
Found on the current feed only |
Package history
Version | Size | Last updated | Downloads | Mirrored? | |||
---|---|---|---|---|---|---|---|
4.1.1-pre.305 | 69.56 KB | Mon, 18 Nov 2024 07:14:25 GMT | 1 | ||||
4.1.1-pre.300 | 69.57 KB | Thu, 07 Nov 2024 16:41:31 GMT | 1 | ||||
4.1.1-pre.297 | 69.57 KB | Mon, 14 Oct 2024 10:55:30 GMT | 1 | ||||
4.1.0 | 69.54 KB | Sat, 12 Oct 2024 03:51:19 GMT | 3 | ||||
4.0.290 | 69.43 KB | Sat, 12 Oct 2024 03:15:36 GMT | 1 | ||||
4.0.289 | 69.44 KB | Sat, 12 Oct 2024 01:34:19 GMT | 2 | ||||
4.0.288 | 69.42 KB | Fri, 11 Oct 2024 15:10:43 GMT | 1 | ||||
4.0.287 | 69.43 KB | Fri, 11 Oct 2024 14:33:34 GMT | 2 | ||||
4.0.286 | 69.43 KB | Thu, 10 Oct 2024 18:29:50 GMT | 1 | ||||
4.0.282 | 69.42 KB | Mon, 07 Oct 2024 09:48:07 GMT | 1 | ||||
4.0.281 | 69.42 KB | Mon, 07 Oct 2024 09:47:28 GMT | 1 | ||||
4.0.280 | 69.42 KB | Mon, 07 Oct 2024 09:47:10 GMT | 2 | ||||
4.0.275 | 69.42 KB | Wed, 02 Oct 2024 03:38:21 GMT | 1 | ||||
4.0.274 | 69.41 KB | Wed, 02 Oct 2024 03:37:55 GMT | 1 | ||||
4.0.272 | 69.44 KB | Sun, 29 Sep 2024 07:40:04 GMT | 1 | ||||
4.0.270 | 69.27 KB | Mon, 23 Sep 2024 13:47:56 GMT | 2 | ||||
4.0.259 | 69.28 KB | Mon, 12 Aug 2024 15:34:13 GMT | 2 | ||||
4.0.255 | 69.26 KB | Sun, 28 Jul 2024 11:06:24 GMT | 1 | ||||
4.0.255-pre.293 | 69.47 KB | Sat, 12 Oct 2024 03:43:01 GMT | 2 | ||||
4.0.254 | 69.25 KB | Sun, 28 Jul 2024 10:53:51 GMT | 3 | ||||
4.0.253 | 69.01 KB | Sun, 28 Jul 2024 10:48:09 GMT | 2 | ||||
4.0.252 | 69.03 KB | Sun, 28 Jul 2024 10:47:25 GMT | 1 | ||||
4.0.251 | 69.02 KB | Sun, 28 Jul 2024 10:46:47 GMT | 2 | ||||
4.0.250 | 69.07 KB | Sun, 28 Jul 2024 10:46:13 GMT | 1 | ||||
4.0.249 | 69.08 KB | Sun, 28 Jul 2024 10:27:36 GMT | 1 | ||||
4.0.248 | 69.08 KB | Sun, 28 Jul 2024 10:27:17 GMT | 1 | ||||
4.0.239 | 68.92 KB | Mon, 08 Jul 2024 07:29:49 GMT | 2 | ||||
4.0.237 | 68.93 KB | Mon, 01 Jul 2024 11:47:16 GMT | 2 | ||||
4.0.235 | 68.93 KB | Mon, 01 Jul 2024 10:56:46 GMT | 1 | ||||
4.0.234 | 68.93 KB | Mon, 01 Jul 2024 10:56:19 GMT | 2 | ||||
4.0.233 | 68.92 KB | Mon, 01 Jul 2024 10:56:03 GMT | 1 | ||||
4.0.228 | 68.89 KB | Thu, 27 Jun 2024 11:23:26 GMT | 1 | ||||
4.0.226 | 68.92 KB | Wed, 26 Jun 2024 10:52:58 GMT | 2 | ||||
4.0.223 | 68.15 KB | Mon, 24 Jun 2024 11:03:46 GMT | 1 | ||||
4.0.220 | 68.15 KB | Mon, 24 Jun 2024 10:27:10 GMT | 1 | ||||
4.0.217 | 68.13 KB | Mon, 24 Jun 2024 06:41:06 GMT | 1 | ||||
4.0.216 | 68.15 KB | Mon, 24 Jun 2024 06:40:32 GMT | 1 | ||||
4.0.213 | 68.17 KB | Mon, 24 Jun 2024 04:48:59 GMT | 1 | ||||
4.0.207 | 68.15 KB | Sun, 23 Jun 2024 11:12:50 GMT | 2 | ||||
4.0.205 | 68.15 KB | Sat, 22 Jun 2024 18:45:22 GMT | 2 | ||||
4.0.201 | 68.14 KB | Sat, 22 Jun 2024 03:57:53 GMT | 2 | ||||
4.0.200 | 68.13 KB | Fri, 21 Jun 2024 20:34:18 GMT | 0 | ||||
4.0.197 | 68.14 KB | Fri, 21 Jun 2024 19:38:26 GMT | 2 | ||||
4.0.195 | 68.15 KB | Fri, 21 Jun 2024 19:30:23 GMT | 1 | ||||
4.0.192 | 68.14 KB | Fri, 21 Jun 2024 19:20:57 GMT | 2 | ||||
4.0.191 | 68.15 KB | Fri, 21 Jun 2024 18:47:59 GMT | 1 | ||||
4.0.190 | 68.13 KB | Mon, 17 Jun 2024 11:32:54 GMT | 1 | ||||
4.0.189 | 68.13 KB | Mon, 17 Jun 2024 11:27:27 GMT | 1 | ||||
4.0.188 | 68.15 KB | Mon, 17 Jun 2024 11:26:30 GMT | 1 | ||||
4.0.187 | 68.13 KB | Mon, 17 Jun 2024 11:18:55 GMT | 1 | ||||
4.0.186 | 68.13 KB | Mon, 17 Jun 2024 11:16:06 GMT | 1 | ||||
4.0.185 | 68.11 KB | Mon, 17 Jun 2024 11:13:45 GMT | 1 | ||||
4.0.182 | 68.12 KB | Mon, 17 Jun 2024 11:04:18 GMT | 2 | ||||
3.1.14 | 74.17 KB | Mon, 17 Jun 2024 11:06:01 GMT | 2 | ||||
3.1.13 | 74.17 KB | Sat, 10 Feb 2024 01:49:54 GMT | 3 | ||||
3.1.12 | 74.18 KB | Sat, 10 Feb 2024 01:05:30 GMT | 6 | ||||
3.1.10 | 73.69 KB | Thu, 08 Feb 2024 15:50:25 GMT | 3 | ||||
3.1.8 | 69.84 KB | Tue, 08 Aug 2023 21:08:34 GMT | 3 | ||||
3.1.3 | 69.83 KB | Tue, 04 Jul 2023 17:20:38 GMT | 3 | ||||
3.0.140 | 69.83 KB | Tue, 08 Aug 2023 21:05:33 GMT | 3 | ||||
3.0.135 | 69.83 KB | Wed, 12 Jul 2023 03:01:03 GMT | 3 | ||||
3.0.134 | 69.83 KB | Tue, 04 Jul 2023 17:19:16 GMT | 5 | ||||
3.0.133 | 69.83 KB | Tue, 04 Jul 2023 11:30:20 GMT | 3 | ||||
3.0.131 | 69.83 KB | Tue, 04 Jul 2023 11:25:34 GMT | 3 | ||||
3.0.130 | 69.83 KB | Tue, 04 Jul 2023 08:44:54 GMT | 3 | ||||
3.0.125 | 66.52 KB | Mon, 30 Jan 2023 16:33:06 GMT | 8 | ||||
3.0.124 | 66.52 KB | Sun, 29 Jan 2023 13:04:35 GMT | 5 | ||||
3.0.122 | 66.52 KB | Sat, 28 Jan 2023 18:15:11 GMT | 3 | ||||
3.0.115 | 66.53 KB | Sat, 25 Jun 2022 15:34:58 GMT | 2 | ||||
3.0.114 | 66.53 KB | Sun, 03 Apr 2022 16:38:37 GMT | 4 | ||||
3.0.111 | 63.4 KB | Sat, 04 Dec 2021 21:18:58 GMT | 3 | ||||
3.0.110 | 63.4 KB | Sat, 04 Dec 2021 15:55:57 GMT | 4 | ||||
3.0.104 | 62.14 KB | Tue, 27 Jul 2021 20:19:07 GMT | 3 | ||||
3.0.102 | 37.9 KB | Mon, 26 Jul 2021 16:13:55 GMT | 3 | ||||
3.0.99 | 37.89 KB | Thu, 27 May 2021 16:38:36 GMT | 5 | ||||
3.0.98 | 37.89 KB | Tue, 25 May 2021 16:56:31 GMT | 5 | ||||
3.0.95 | 37.71 KB | Tue, 25 May 2021 16:39:01 GMT | 3 | ||||
3.0.93 | 38.16 KB | Sun, 18 Apr 2021 16:21:59 GMT | 3 | ||||
3.0.88 | 37.72 KB | Thu, 08 Apr 2021 20:52:49 GMT | 3 | ||||
3.0.87 | 37.72 KB | Wed, 07 Apr 2021 20:24:08 GMT | 5 | ||||
2.1.83 | 35.73 KB | Wed, 27 Jan 2021 07:02:40 GMT | 3 | ||||
2.1.82 | 35.73 KB | Wed, 06 Jan 2021 01:12:36 GMT | 2 | ||||
2.1.81 | 35.73 KB | Tue, 05 Jan 2021 18:50:08 GMT | 4 | ||||
2.1.79 | 35.68 KB | Sun, 27 Sep 2020 02:28:53 GMT | 3 | ||||
2.1.78 | 35.68 KB | Sun, 27 Sep 2020 00:09:09 GMT | 4 | ||||
2.1.76 | 35.68 KB | Fri, 25 Sep 2020 22:57:13 GMT | 3 | ||||
2.1.75 | 35.59 KB | Wed, 23 Sep 2020 12:23:53 GMT | 3 | ||||
2.1.73 | 35.58 KB | Mon, 21 Sep 2020 00:41:52 GMT | 3 | ||||
2.1.71 | 25.46 KB | Wed, 16 Sep 2020 12:57:10 GMT | 3 | ||||
2.1.70 | 34.66 KB | Sun, 06 Sep 2020 13:42:57 GMT | 3 | ||||
2.1.68 | 34.66 KB | Sat, 05 Sep 2020 19:49:16 GMT | 3 | ||||
2.1.66 | 34.66 KB | Sat, 05 Sep 2020 19:38:34 GMT | 3 | ||||
2.1.62 | 34.66 KB | Sat, 05 Sep 2020 19:03:11 GMT | 4 | ||||
2.1.60 | 34.67 KB | Sat, 05 Sep 2020 18:56:40 GMT | 5 | ||||
2.1.54 | 34.64 KB | Sat, 29 Aug 2020 16:36:42 GMT | 5 | ||||
2.1.52 | 34.64 KB | Sat, 29 Aug 2020 16:31:53 GMT | 4 | ||||
2.1.50 | 34.63 KB | Sat, 29 Aug 2020 16:24:51 GMT | 4 | ||||
2.1.48 | 34.65 KB | Sat, 29 Aug 2020 15:58:52 GMT | 4 | ||||
2.1.44 | 24.54 KB | Fri, 22 May 2020 22:27:43 GMT | 4 | ||||
2.1.42 | 24.54 KB | Fri, 22 May 2020 22:15:28 GMT | 4 | ||||
2.1.40 | 25.46 KB | Fri, 22 May 2020 21:58:45 GMT | 3 | ||||
2.1.38 | 25.46 KB | Fri, 22 May 2020 21:55:44 GMT | 3 | ||||
2.1.36 | 25.12 KB | Tue, 19 May 2020 01:56:49 GMT | 6 | ||||
2.1.34 | 25.03 KB | Fri, 15 May 2020 13:37:48 GMT | 3 | ||||
2.1.33 | 24.53 KB | Mon, 20 Apr 2020 17:29:27 GMT | 3 | ||||
2.1.32 | 24.54 KB | Sun, 19 Apr 2020 18:00:00 GMT | 4 | ||||
2.1.30 | 24.53 KB | Sat, 15 Feb 2020 21:58:31 GMT | 4 | ||||
2.1.29 | 23.74 KB | Sat, 15 Feb 2020 21:17:48 GMT | 4 | ||||
2.1.28 | 23.14 KB | Sat, 15 Feb 2020 21:16:38 GMT | 3 | ||||
2.1.27 | 24.54 KB | Sat, 15 Feb 2020 20:53:44 GMT | 3 | ||||
2.1.25 | 24.54 KB | Sat, 15 Feb 2020 20:41:16 GMT | 3 | ||||
2.1.23 | 24.54 KB | Wed, 12 Feb 2020 23:18:18 GMT | 3 | ||||
2.1.21 | 24.54 KB | Wed, 12 Feb 2020 22:37:38 GMT | 3 | ||||
2.1.19 | 24.54 KB | Mon, 10 Feb 2020 03:31:51 GMT | 3 | ||||
2.1.17 | 24.5 KB | Sun, 09 Feb 2020 21:44:39 GMT | 3 | ||||
2.1.15 | 23.74 KB | Tue, 01 Oct 2019 01:56:25 GMT | 4 | ||||
2.1.11 | 23.13 KB | Thu, 26 Sep 2019 13:57:32 GMT | 3 | ||||
2.1.10 | 23.14 KB | Wed, 25 Sep 2019 16:15:45 GMT | 4 | ||||
2.1.8 | 23.13 KB | Wed, 25 Sep 2019 15:57:03 GMT | 3 | ||||
2.1.7 | 23.13 KB | Wed, 25 Sep 2019 15:47:12 GMT | 3 | ||||
2.1.6 | 23.11 KB | Sun, 15 Sep 2019 15:57:42 GMT | 6 | ||||
2.1.5 | 23.13 KB | Fri, 06 Sep 2019 13:18:01 GMT | 2 | ||||
2.1.4 | 23.11 KB | Sun, 15 Sep 2019 15:38:51 GMT | 3 | ||||
2.1.3 | 23.13 KB | Fri, 06 Sep 2019 13:50:18 GMT | 3 | ||||
2.1.2 | 21.8 KB | Tue, 03 Sep 2019 00:53:35 GMT | 3 | ||||
2.1.1 | 23.13 KB | Fri, 06 Sep 2019 13:36:26 GMT | 3 |