GitHubActionsTestLogger 2.0.0-alpha
See the version list below for details.
dotnet add package GitHubActionsTestLogger --version 2.0.0-alpha
NuGet\Install-Package GitHubActionsTestLogger -Version 2.0.0-alpha
<PackageReference Include="GitHubActionsTestLogger" Version="2.0.0-alpha">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
paket add GitHubActionsTestLogger --version 2.0.0-alpha
#r "nuget: GitHubActionsTestLogger, 2.0.0-alpha"
// Install GitHubActionsTestLogger as a Cake Addin
#addin nuget:?package=GitHubActionsTestLogger&version=2.0.0-alpha&prerelease
// Install GitHubActionsTestLogger as a Cake Tool
#tool nuget:?package=GitHubActionsTestLogger&version=2.0.0-alpha&prerelease
GitHub Actions Test Logger
π’ Project status: active<sup>[?]</sup>
Custom logger for dotnet test
that reports test results in a structured format that GitHub Actions understands.
When using this logger, failed tests are listed in job annotations and highlighted in code diffs.
Additionally, this also generates a job summary that contains detailed information about the executed test run.
Terms of use
By using this project or its source code, for any purpose and in any shape or form, you grant your implicit agreement to all the following statements:
- You condemn Russia and its military aggression against Ukraine
- You recognize that Russia is an occupant that unlawfully invaded a sovereign state
- You support Ukraine's territorial integrity, including its claims over temporarily occupied territories of Crimea and Donbas
- You reject false narratives perpetuated by Russian state propaganda
To learn more about the war and how you can help, click here. Glory to Ukraine! πΊπ¦
Install
- π¦ NuGet:
dotnet add package GitHubActionsTestLogger
Screenshots
Usage
Installation
To use GitHub Actions Test Logger, follow these steps:
- Install GitHubActionsTestLogger package in your test project
- Update Microsoft.NET.Test.Sdk package in your test project to the latest version
- Modify your GitHub Actions workflow file by adding
--logger GitHubActions
todotnet test
:
name: CI
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install .NET
uses: actions/setup-dotnet@v2
with:
dotnet-version: 6.0.x
- name: Build & test
run: dotnet test --configuration Release --logger GitHubActions
β οΈ Ensure that your test project references Microsoft.NET.Test.Sdk version 16.8.0 or higher. Older versions of this package may not work properly with custom test loggers.
β οΈ If you are using .NET SDK v2.2 or lower, you need to enable
<CopyLocalLockFileAssemblies>
property in your test project.
Options
GitHub Actions Test Logger has options that you can override to customize its behavior.
In order to pass an option to the logger, include it as an additional parameter inside --logger
:
dotnet test --logger "GitHubActions;option1=foo;option2=bar"
annotations.titleFormat
Specifies the format of the annotation title used when reporting test failures.
The following replacement tokens are available:
$test
β replaced with the test's display name$traits.TRAIT_NAME
β replaced with the value of the trait namedTRAIT_NAME
$error
β replaced with the error message$trace
β replaced with the stack trace$framework
β replaced with the target framework
Default: $test
.
Examples:
$test
βMyTests.Test1
[$traits.Category] $test
β[UI Tests] MyTests.Test1
$test ($framework)
βMyTests.Test1 (.NETCoreApp,Version=v6.0)
annotations.messageFormat
Specifies the format of the annotation message used when reporting test failures.
Supports the same replacement tokens as annotations.titleFormat
.
Default: $error
.
Examples:
$error
βAssertionException: Expected 'true' but found 'false'
$error\n$trace
βAssertionException: Expected 'true' but found 'false'
, followed by stacktrace on the next line
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 is compatible. |
.NET Framework | net451 is compatible. net452 was computed. net46 was computed. net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETFramework 4.5.1
- Microsoft.TestPlatform.ObjectModel (>= 17.1.0)
-
.NETStandard 2.0
- Microsoft.TestPlatform.ObjectModel (>= 17.1.0)
-
.NETStandard 2.1
- Microsoft.TestPlatform.ObjectModel (>= 17.1.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories (85)
Showing the top 5 popular GitHub repositories that depend on GitHubActionsTestLogger:
Repository | Stars |
---|---|
DapperLib/Dapper
Dapper - a simple object mapper for .Net
|
|
MaterialDesignInXAML/MaterialDesignInXamlToolkit
Google's Material Design in XAML & WPF, for C# & VB.Net.
|
|
App-vNext/Polly
Polly is a .NET resilience and transient-fault-handling library that allows developers to express policies such as Retry, Circuit Breaker, Timeout, Bulkhead Isolation, and Fallback in a fluent and thread-safe manner. From version 6.0.1, Polly targets .NET Standard 1.1 and 2.0+.
|
|
Tyrrrz/DiscordChatExporter
Exports Discord chat logs to a file
|
|
PrismLibrary/Prism
Prism is a framework for building loosely coupled, maintainable, and testable XAML applications in WPF, Xamarin Forms, and Uno / Win UI Applications..
|
Version | Downloads | Last updated |
---|---|---|
2.3.3 | 701,836 | 8/24/2023 |
2.3.2 | 267,458 | 6/1/2023 |
2.3.1 | 4,737 | 5/31/2023 |
2.3.0 | 46,854 | 5/25/2023 |
2.2.1 | 19,971 | 5/18/2023 |
2.2.0 | 1,373 | 5/18/2023 |
2.1.0 | 12,431 | 5/9/2023 |
2.0.2 | 24,396 | 4/27/2023 |
1.3.0 | 136,362 | 2/21/2022 |
1.2.0 | 1,059,378 | 2/22/2021 |
1.1.2 | 123,793 | 10/26/2020 |
1.1.1 | 19,278 | 10/1/2020 |
1.1.0 | 151,376 | 4/27/2020 |
1.0.0 | 8,624 | 3/23/2020 |
0.0.1 | 2,813 | 3/22/2020 |