spekt - JunitXml.TestLogger 3.0.115

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

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

Copy to clipboard

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

Copy to clipboard

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

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

nuget JunitXml.TestLogger  ~> 3.0.115
Copy to clipboard

> choco install JunitXml.TestLogger --version 3.0.115 --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 "3.0.115" -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.6: 4.6.0.0
  • .NETStandard 1.5: 1.5.0.0

Owners

Arun Mahapatra

Authors

Siphonophora, codito, faizan2304, smadala, lahma

Project URL

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

License

Unknown

Info

191 total downloads
1 downloads for version 3.0.115
Download (66.53 KB)
Found on the current feed only

Package history

Version Size Last updated Downloads Mirrored?
4.0.259 69.28 KB Mon, 12 Aug 2024 15:34:13 GMT 0
4.0.255 69.26 KB Sun, 28 Jul 2024 11:06:24 GMT 0
4.0.254 69.25 KB Sun, 28 Jul 2024 10:53:51 GMT 2
4.0.253 69.01 KB Sun, 28 Jul 2024 10:48:09 GMT 0
4.0.252 69.03 KB Sun, 28 Jul 2024 10:47:25 GMT 0
4.0.251 69.02 KB Sun, 28 Jul 2024 10:46:47 GMT 0
4.0.250 69.07 KB Sun, 28 Jul 2024 10:46:13 GMT 0
4.0.249 69.08 KB Sun, 28 Jul 2024 10:27:36 GMT 0
4.0.248 69.08 KB Sun, 28 Jul 2024 10:27:17 GMT 0
4.0.239 68.92 KB Mon, 08 Jul 2024 07:29:49 GMT 1
4.0.237 68.93 KB Mon, 01 Jul 2024 11:47:16 GMT 1
4.0.235 68.93 KB Mon, 01 Jul 2024 10:56:46 GMT 0
4.0.234 68.93 KB Mon, 01 Jul 2024 10:56:19 GMT 0
4.0.233 68.92 KB Mon, 01 Jul 2024 10:56:03 GMT 0
4.0.228 68.89 KB Thu, 27 Jun 2024 11:23:26 GMT 0
4.0.226 68.92 KB Wed, 26 Jun 2024 10:52:58 GMT 0
4.0.223 68.15 KB Mon, 24 Jun 2024 11:03:46 GMT 0
4.0.220 68.15 KB Mon, 24 Jun 2024 10:27:10 GMT 0
4.0.217 68.13 KB Mon, 24 Jun 2024 06:41:06 GMT 0
4.0.216 68.15 KB Mon, 24 Jun 2024 06:40:32 GMT 0
4.0.213 68.17 KB Mon, 24 Jun 2024 04:48:59 GMT 0
4.0.207 68.15 KB Sun, 23 Jun 2024 11:12:50 GMT 0
4.0.205 68.15 KB Sat, 22 Jun 2024 18:45:22 GMT 1
4.0.201 68.14 KB Sat, 22 Jun 2024 03:57:53 GMT 0
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 0
4.0.195 68.15 KB Fri, 21 Jun 2024 19:30:23 GMT 0
4.0.192 68.14 KB Fri, 21 Jun 2024 19:20:57 GMT 1
4.0.191 68.15 KB Fri, 21 Jun 2024 18:47:59 GMT 0
4.0.190 68.13 KB Mon, 17 Jun 2024 11:32:54 GMT 0
4.0.189 68.13 KB Mon, 17 Jun 2024 11:27:27 GMT 0
4.0.188 68.15 KB Mon, 17 Jun 2024 11:26:30 GMT 0
4.0.187 68.13 KB Mon, 17 Jun 2024 11:18:55 GMT 0
4.0.186 68.13 KB Mon, 17 Jun 2024 11:16:06 GMT 0
4.0.185 68.11 KB Mon, 17 Jun 2024 11:13:45 GMT 0
4.0.182 68.12 KB Mon, 17 Jun 2024 11:04:18 GMT 0
3.1.14 74.17 KB Mon, 17 Jun 2024 11:06:01 GMT 1
3.1.13 74.17 KB Sat, 10 Feb 2024 01:49:54 GMT 2
3.1.12 74.18 KB Sat, 10 Feb 2024 01:05:30 GMT 5
3.1.10 73.69 KB Thu, 08 Feb 2024 15:50:25 GMT 2
3.1.8 69.84 KB Tue, 08 Aug 2023 21:08:34 GMT 2
3.1.3 69.83 KB Tue, 04 Jul 2023 17:20:38 GMT 2
3.0.140 69.83 KB Tue, 08 Aug 2023 21:05:33 GMT 2
3.0.135 69.83 KB Wed, 12 Jul 2023 03:01:03 GMT 2
3.0.134 69.83 KB Tue, 04 Jul 2023 17:19:16 GMT 4
3.0.133 69.83 KB Tue, 04 Jul 2023 11:30:20 GMT 2
3.0.131 69.83 KB Tue, 04 Jul 2023 11:25:34 GMT 2
3.0.130 69.83 KB Tue, 04 Jul 2023 08:44:54 GMT 2
3.0.125 66.52 KB Mon, 30 Jan 2023 16:33:06 GMT 7
3.0.124 66.52 KB Sun, 29 Jan 2023 13:04:35 GMT 4
3.0.122 66.52 KB Sat, 28 Jan 2023 18:15:11 GMT 2
3.0.115 66.53 KB Sat, 25 Jun 2022 15:34:58 GMT 1
3.0.114 66.53 KB Sun, 03 Apr 2022 16:38:37 GMT 3
3.0.111 63.4 KB Sat, 04 Dec 2021 21:18:58 GMT 2
3.0.110 63.4 KB Sat, 04 Dec 2021 15:55:57 GMT 3
3.0.104 62.14 KB Tue, 27 Jul 2021 20:19:07 GMT 2
3.0.102 37.9 KB Mon, 26 Jul 2021 16:13:55 GMT 2
3.0.99 37.89 KB Thu, 27 May 2021 16:38:36 GMT 4
3.0.98 37.89 KB Tue, 25 May 2021 16:56:31 GMT 4
3.0.95 37.71 KB Tue, 25 May 2021 16:39:01 GMT 2
3.0.93 38.16 KB Sun, 18 Apr 2021 16:21:59 GMT 2
3.0.88 37.72 KB Thu, 08 Apr 2021 20:52:49 GMT 2
3.0.87 37.72 KB Wed, 07 Apr 2021 20:24:08 GMT 4
2.1.83 35.73 KB Wed, 27 Jan 2021 07:02:40 GMT 2
2.1.82 35.73 KB Wed, 06 Jan 2021 01:12:36 GMT 1
2.1.81 35.73 KB Tue, 05 Jan 2021 18:50:08 GMT 3
2.1.79 35.68 KB Sun, 27 Sep 2020 02:28:53 GMT 2
2.1.78 35.68 KB Sun, 27 Sep 2020 00:09:09 GMT 3
2.1.76 35.68 KB Fri, 25 Sep 2020 22:57:13 GMT 2
2.1.75 35.59 KB Wed, 23 Sep 2020 12:23:53 GMT 2
2.1.73 35.58 KB Mon, 21 Sep 2020 00:41:52 GMT 2
2.1.71 25.46 KB Wed, 16 Sep 2020 12:57:10 GMT 2
2.1.70 34.66 KB Sun, 06 Sep 2020 13:42:57 GMT 2
2.1.68 34.66 KB Sat, 05 Sep 2020 19:49:16 GMT 2
2.1.66 34.66 KB Sat, 05 Sep 2020 19:38:34 GMT 2
2.1.62 34.66 KB Sat, 05 Sep 2020 19:03:11 GMT 3
2.1.60 34.67 KB Sat, 05 Sep 2020 18:56:40 GMT 4
2.1.54 34.64 KB Sat, 29 Aug 2020 16:36:42 GMT 4
2.1.52 34.64 KB Sat, 29 Aug 2020 16:31:53 GMT 3
2.1.50 34.63 KB Sat, 29 Aug 2020 16:24:51 GMT 3
2.1.48 34.65 KB Sat, 29 Aug 2020 15:58:52 GMT 3
2.1.44 24.54 KB Fri, 22 May 2020 22:27:43 GMT 3
2.1.42 24.54 KB Fri, 22 May 2020 22:15:28 GMT 3
2.1.40 25.46 KB Fri, 22 May 2020 21:58:45 GMT 2
2.1.38 25.46 KB Fri, 22 May 2020 21:55:44 GMT 2
2.1.36 25.12 KB Tue, 19 May 2020 01:56:49 GMT 5
2.1.34 25.03 KB Fri, 15 May 2020 13:37:48 GMT 2
2.1.33 24.53 KB Mon, 20 Apr 2020 17:29:27 GMT 2
2.1.32 24.54 KB Sun, 19 Apr 2020 18:00:00 GMT 3
2.1.30 24.53 KB Sat, 15 Feb 2020 21:58:31 GMT 3
2.1.29 23.74 KB Sat, 15 Feb 2020 21:17:48 GMT 3
2.1.28 23.14 KB Sat, 15 Feb 2020 21:16:38 GMT 2
2.1.27 24.54 KB Sat, 15 Feb 2020 20:53:44 GMT 2
2.1.25 24.54 KB Sat, 15 Feb 2020 20:41:16 GMT 2
2.1.23 24.54 KB Wed, 12 Feb 2020 23:18:18 GMT 2
2.1.21 24.54 KB Wed, 12 Feb 2020 22:37:38 GMT 2
2.1.19 24.54 KB Mon, 10 Feb 2020 03:31:51 GMT 2
2.1.17 24.5 KB Sun, 09 Feb 2020 21:44:39 GMT 2
2.1.15 23.74 KB Tue, 01 Oct 2019 01:56:25 GMT 3
2.1.11 23.13 KB Thu, 26 Sep 2019 13:57:32 GMT 2
2.1.10 23.14 KB Wed, 25 Sep 2019 16:15:45 GMT 3
2.1.8 23.13 KB Wed, 25 Sep 2019 15:57:03 GMT 2
2.1.7 23.13 KB Wed, 25 Sep 2019 15:47:12 GMT 2
2.1.6 23.11 KB Sun, 15 Sep 2019 15:57:42 GMT 5
2.1.5 23.13 KB Fri, 06 Sep 2019 13:18:01 GMT 1
2.1.4 23.11 KB Sun, 15 Sep 2019 15:38:51 GMT 2
2.1.3 23.13 KB Fri, 06 Sep 2019 13:50:18 GMT 2
2.1.2 21.8 KB Tue, 03 Sep 2019 00:53:35 GMT 2
2.1.1 23.13 KB Fri, 06 Sep 2019 13:36:26 GMT 2