All Projects → spekt → junit.testlogger

spekt / junit.testlogger

Licence: MIT license
JUnit test logger for vstest platform

Programming Languages

C#
18002 projects

Projects that are alternatives of or similar to junit.testlogger

nunit.testlogger
NUnit logger for vstest platform
Stars: ✭ 48 (-21.31%)
Mutual labels:  nuget, logger, vstest, test-reporting, dotnet-test
xunit.testlogger
XUnit logger for vstest platform
Stars: ✭ 65 (+6.56%)
Mutual labels:  vstest, test-reporting, dotnet-test
xunit-to-junit
This Extensible Stylesheet Language Transformations can transform a xUnit.net v2 XML test results file into a JUnit test results file.
Stars: ✭ 21 (-65.57%)
Mutual labels:  nuget, junit
Linqpad.queryplanvisualizer
SQL Server and PostgreSQL query execution plan visualizer for LINQPad
Stars: ✭ 209 (+242.62%)
Mutual labels:  nuget
Nil.js
JavaScript engine for .NET written in C#.
Stars: ✭ 236 (+286.89%)
Mutual labels:  nuget
datalogger
DataLogger foi projetado para ser uma biblioteca simples de log com suporte a vários providers.
Stars: ✭ 46 (-24.59%)
Mutual labels:  logger
ng-logger
Angular logger service
Stars: ✭ 65 (+6.56%)
Mutual labels:  logger
Json
A really simple C# JSON Parser in 350 lines
Stars: ✭ 202 (+231.15%)
Mutual labels:  nuget
Community.VisualStudio.Toolkit
A community toolkit for writing Visual Studio extensions
Stars: ✭ 23 (-62.3%)
Mutual labels:  nuget
mini-async-log-c
Mini async log C port. Now with C++ wrappers.
Stars: ✭ 69 (+13.11%)
Mutual labels:  logger
doc
QuickPerf documentation: https://github.com/quick-perf/doc/wiki/QuickPerf
Stars: ✭ 22 (-63.93%)
Mutual labels:  junit
Mond
A scripting language for .NET Core
Stars: ✭ 237 (+288.52%)
Mutual labels:  nuget
vscode-npm-gui
vscode nuget package manager gui https://marketplace.visualstudio.com/items?itemName=aliasadidev.nugetpackagemanagergui
Stars: ✭ 36 (-40.98%)
Mutual labels:  nuget
Typeahead
Typeahead control for Blazor applications
Stars: ✭ 226 (+270.49%)
Mutual labels:  nuget
GenuineChannels
Collection of custom .NET Remoting channels
Stars: ✭ 29 (-52.46%)
Mutual labels:  nuget
Watsontcp
WatsonTcp is the easiest way to build TCP-based clients and servers in C#.
Stars: ✭ 209 (+242.62%)
Mutual labels:  nuget
log
Aplus Framework Log Library
Stars: ✭ 14 (-77.05%)
Mutual labels:  logger
Blazortable
Blazor Table Component with Sorting, Paging and Filtering
Stars: ✭ 249 (+308.2%)
Mutual labels:  nuget
Sharpcaster
Chromecast C# SDK for Windows, Windows Phone, .NET 4.5.1, Xamarin.iOS and Xamarin.Android platforms.
Stars: ✭ 245 (+301.64%)
Mutual labels:  nuget
yavdb
Yet Another Vulnerability Database
Stars: ✭ 14 (-77.05%)
Mutual labels:  nuget

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
  1. 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 eachother.

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

Allowed Values
  • FailureBodyFormat=Default
  • FailureBodyFormat=Verbose

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].