The Wayback Machine - https://web.archive.org/web/20201101064522/https://github.com/Tyrrrz/GitHubActionsTestLogger
Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.

Readme.md

GitHubActionsTestLogger

Build Coverage Version Downloads Donate

Project status: active.

Custom test logger for dotnet test that writes output in a structured format which is understood by GitHub Actions. When using this logger, failed tests show up in diffs as well as in the list of annotations.

Download

  • NuGet: dotnet add package GitHubActionsTestLogger

Screenshots

diff

Usage

Prerequisites:

  • .NET SDK v3.0 or higher
  • Latest version of Microsoft.NET.Test.Sdk referenced in your test project

Setup:

  1. Install GitHubActionsTestLogger in your test project via NuGet

  2. Update your workflow by adding a logger option to dotnet test:

steps:
  # ...

  - name: Build & test
    run: dotnet test --logger GitHubActions

Ignore warnings

By default, GitHubActionsTestLogger produces warnings for tests that have neither failed nor succeeded (e.g. skipped). If you don't want that, you can disable it with a parameter:

dotnet test --logger "GitHubActions;report-warnings=false"

About

Test logger for .NET that reports failures in a format that GitHub Actions understands

Topics

Resources

License

Packages

No packages published

Languages

You can’t perform that action at this time.