Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/spekt/xunit.testlogger
XUnit logger for vstest platform (<= v3.x)
https://github.com/spekt/xunit.testlogger
dotnet dotnet-test test-reporting vstest xunit xunit-logger
Last synced: 5 days ago
JSON representation
XUnit logger for vstest platform (<= v3.x)
- Host: GitHub
- URL: https://github.com/spekt/xunit.testlogger
- Owner: spekt
- License: mit
- Created: 2018-05-18T00:55:10.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-09-30T07:43:32.000Z (3 months ago)
- Last Synced: 2024-12-28T15:34:24.129Z (12 days ago)
- Topics: dotnet, dotnet-test, test-reporting, vstest, xunit, xunit-logger
- Language: C#
- Homepage:
- Size: 110 KB
- Stars: 75
- Watchers: 9
- Forks: 16
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
> [!IMPORTANT]
> Development of v4.x and subsequent versions of the Xunit logger is moved to the [testlogger](https://github.com/spekt/testlogger) repository.
> Kindly report any new issues or contribute your patches in that repo.# Xunit Test Logger
Xunit logger extensions for [Visual Studio Test Platform](https://github.com/microsoft/vstest).[![Build Status](https://travis-ci.com/spekt/xunit.testlogger.svg?branch=master)](https://travis-ci.com/spekt/xunit.testlogger)
[![Build status](https://ci.appveyor.com/api/projects/status/73iw12g89lhlr9ir?svg=true)](https://ci.appveyor.com/project/spekt/xunit-testlogger)
[![NuGet Downloads](https://img.shields.io/nuget/dt/XunitXml.TestLogger)](https://www.nuget.org/packages/XunitXml.TestLogger/)## Packages
| Logger | Stable Package | Pre-release Package |
| ------ | -------------- | ------------------- |
| Xunit | [![NuGet](https://img.shields.io/nuget/v/XunitXml.TestLogger.svg)](https://www.nuget.org/packages/XunitXml.TestLogger/) | [![MyGet Pre Release](https://img.shields.io/myget/spekt/vpre/xunitxml.testlogger.svg)](https://www.myget.org/feed/spekt/package/nuget/XunitXml.TestLogger) |If you're looking for `nunit`, `junit` or `appveyor` loggers, visit following repositories:
*
*
*## Usage
Xunit logger can generate xml reports in the xunit v2 format (https://xunit.net/docs/format-xml-v2).1. Add a reference to the [Xunit Logger](https://www.nuget.org/packages/XunitXml.TestLogger) nuget package in test project
2. Use the following command line in tests
```
> dotnet test --logger:xunit
```
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:"xunit;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 is documented [in the wiki][config-wiki].
[config-wiki]: https://github.com/spekt/testlogger/wiki/Logger-Configuration
## License
MIT