Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/spekt/testlogger
Junit, Xunit and NUnit loggers for the .NET test platform
https://github.com/spekt/testlogger
circleci dotnet dotnet-test gitlab junit logging nunit reporting test-reporting xunit
Last synced: about 21 hours ago
JSON representation
Junit, Xunit and NUnit loggers for the .NET test platform
- Host: GitHub
- URL: https://github.com/spekt/testlogger
- Owner: spekt
- License: mit
- Created: 2019-10-02T02:15:05.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2024-12-09T03:29:11.000Z (14 days ago)
- Last Synced: 2024-12-15T12:07:01.836Z (8 days ago)
- Topics: circleci, dotnet, dotnet-test, gitlab, junit, logging, nunit, reporting, test-reporting, xunit
- Language: C#
- Homepage:
- Size: 601 KB
- Stars: 15
- Watchers: 4
- Forks: 10
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# .NET test loggers
Junit, NUnit and Xunit logger extensions for [Visual Studio Test Platform](https://github.com/microsoft/vstest). Connect your test reports to Circle CI, Gitlab and others from `dotnet test`.
[![Build Status](https://github.com/spekt/testlogger/workflows/.NET/badge.svg)](https://github.com/spekt/testlogger/actions?query=workflow%3A.NET)
[![Code coverage](https://codecov.io/gh/spekt/testlogger/branch/master/graph/badge.svg)](https://codecov.io/gh/spekt/testlogger)## Packages
| Logger | Stable Package | Pre-release Package | Usage |
| ------ | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------- |
| JUnit | [![NuGet](https://img.shields.io/nuget/v/JUnitXml.TestLogger.svg)](https://www.nuget.org/packages/JUnitXml.TestLogger/) | [![MyGet Pre Release](https://img.shields.io/myget/spekt/vpre/junitxml.testlogger.svg)](https://www.myget.org/feed/spekt/package/nuget/JunitXml.TestLogger) | [README](src/JUnit.Xml.Package/README.md) |
| NUnit | [![NuGet](https://img.shields.io/nuget/v/NUnitXml.TestLogger.svg)](https://www.nuget.org/packages/NUnitXml.TestLogger/) | [![MyGet Pre Release](https://img.shields.io/myget/spekt/vpre/nunitxml.testlogger.svg)](https://www.myget.org/feed/spekt/package/nuget/NunitXml.TestLogger) | [README](src/NUnit.Xml.Package/README.md) |
| 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) | [README](src/Xunit.Xml.Package/README.md) |Release notes for all loggers are in the [CHANGELOG](./CHANGELOG.md).
## Contribution Guide
Run the `build.ps1` or `build.sh` scripts in Windows or Linux to build and run the tests.
This repo always requires the latest LTS release of dotnet and dotnet runtime 3.1 for development.
If acceptance tests are failing, try running this command to see detailed output:
```sh
# Run from root of repo
> dotnet test --no-build --logger:"json;LogFilePath=test-results.json" test/assets/Json.TestLogger.MSTest.NetCore.Tests/Json.TestLogger.MSTest.NetCore.Tests.csproj
```### CI/CD Integration Tests
- [Sample Gitlab pipeline](https://gitlab.com/codito/sample-junit-test/-/pipelines) picks the latest pre-release Junit logger in Gitlab CI.
- [Sample Circle CI pipeline](https://app.circleci.com/pipelines/circleci/GA6zAWSpZy4izQcaCFyvJP/CRQra9Zg7NR4ZYZk2vsmEX) runs on every PR via webhook.## Wiki
See for [Logger Configuration](https://github.com/spekt/testlogger/wiki/Logger-Configuration) and troubleshooting.
## License
MIT