Allure.Net.Commons 2.9.1-preview.6-nunit-fixtures

This is a prerelease version of Allure.Net.Commons.
There is a newer version of this package available.
See the version list below for details.
dotnet add package Allure.Net.Commons --version 2.9.1-preview.6-nunit-fixtures                
NuGet\Install-Package Allure.Net.Commons -Version 2.9.1-preview.6-nunit-fixtures                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Allure.Net.Commons" Version="2.9.1-preview.6-nunit-fixtures" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Allure.Net.Commons --version 2.9.1-preview.6-nunit-fixtures                
#r "nuget: Allure.Net.Commons, 2.9.1-preview.6-nunit-fixtures"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Allure.Net.Commons as a Cake Addin
#addin nuget:?package=Allure.Net.Commons&version=2.9.1-preview.6-nunit-fixtures&prerelease

// Install Allure.Net.Commons as a Cake Tool
#tool nuget:?package=Allure.Net.Commons&version=2.9.1-preview.6-nunit-fixtures&prerelease                

Allure.Net.Commons alternate text is missing from this package README image

.Net implementation of Allure java-commons.

Can be targeted either by legacy .net 4.5+ or .net standard 2.* projects.

Use this library to create custom Allure adapters for .Net test frameworks.

Configuration

Allure lifecycle is configured via json file with default name allureConfig.json. NuGet package installs allureConfig.Template.json which you can use as an example. There are 2 ways to specify config file location:

<ItemGroup>
<None Update="allureConfig.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>

Allure lifecycle will start with default configuration settings if allureConfig.json is not found.

Raw json configuration can be accessed from AllureLifeCycle.Instance.JsonConfiguration to extend configuration by adapters. See extension example here: https://github.com/allure-framework/allure-csharp/blob/bdf11bd3e1f41fd1e4a8fd22fa465b90b68e9d3f/Allure.SpecFlowPlugin/PluginHelper.cs#L20-L29

Base configuration params are stored in AllureLifeCycle.Instance.Configuration

Allure configuration section is used to setup output directory and link patterns, e.g.:

{
  "allure": {
    "directory": "allure-results", // optional, default value is "allure-results"
    "title": "custom run title", // optional
    "links": //optional 
    [
      "https://example.org/{link}",
      "https://example.org/{issue}",
      "https://example.org/{tms}"
    ]
  }
}

All Link pattern placeholders will be replaced with URL value of corresponding link type, e.g.

link(type: "issue", url: "BUG-01") => https://example.org/BUG-01

AllureLifecycle

AllureLifecycle class provides methods for test engine events processing.

Use AllureLifecycle.Instance property to access.

Fixture Events
  • StartBeforeFixture
  • StartAfterFixture
  • UpdateFixture
  • StopFixture
Testcase Events
  • StartTestCase
  • UpdateTestCase
  • StopTestCase
  • WriteTestCase

Step Events

  • StartStep
  • UpdateStep
  • StopStep
Attachment Events
  • AddAttachment - adds attachment to the current lifecycle executable item
  • AddScreenDiff - adds needed artifacts to the test case with given uuid to be used with screen-diff-plugin
Utility Methods
  • CleanupResultDirectory - can be used in test run setup to clean old result files

Troubleshooting

...

Product 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 was computed. 
.NET Framework net45 is compatible.  net451 was computed.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (8)

Showing the top 5 NuGet packages that depend on Allure.Net.Commons:

Package Downloads
Allure.NUnit

Create beautiful reports from your NUnit tests.

Allure.Xunit

Create beautiful reports from your xUnit.net tests.

Allure.SpecFlow

Create beautiful reports from your SpecFlow tests.

Allure.Reqnroll

Create beautiful reports from your Reqnroll tests.

Empyrean.Core.Allure

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2.12.1 309,438 6/4/2024
2.12.0 152,465 4/2/2024
2.11.0 183,848 11/29/2023
2.10.0 63,023 10/16/2023
2.10.0-preview.1 6,404 9/22/2023
2.9.5-preview.1 134,078 3/22/2023
2.9.4-preview.6 52,319 2/13/2023
2.9.4-preview.5 147 2/13/2023
2.9.4-preview.2 16,616 1/2/2023
2.9.4-preview.1 193 12/30/2022
2.9.3-preview.1 7,368 12/23/2022
2.9.2-preview.1 14,427 9/19/2022
2.9.1-preview.7-nunit-fixtures 2,059 8/2/2022
2.9.1-preview.6-nunit-fixtures 170 7/27/2022
2.9.1-preview.5 189 7/27/2022
2.9.1-preview.3 154 7/12/2022
2.9.1-preview.2 173 7/12/2022
2.9.0 1,359 7/8/2022