SpecSync.Plugin.ExcelTestResults 5.0.0

Prefix Reserved
dotnet add package SpecSync.Plugin.ExcelTestResults --version 5.0.0
                    
NuGet\Install-Package SpecSync.Plugin.ExcelTestResults -Version 5.0.0
                    
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="SpecSync.Plugin.ExcelTestResults" Version="5.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="SpecSync.Plugin.ExcelTestResults" Version="5.0.0" />
                    
Directory.Packages.props
<PackageReference Include="SpecSync.Plugin.ExcelTestResults" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add SpecSync.Plugin.ExcelTestResults --version 5.0.0
                    
#r "nuget: SpecSync.Plugin.ExcelTestResults, 5.0.0"
                    
#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.
#:package SpecSync.Plugin.ExcelTestResults@5.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=SpecSync.Plugin.ExcelTestResults&version=5.0.0
                    
Install as a Cake Addin
#tool nuget:?package=SpecSync.Plugin.ExcelTestResults&version=5.0.0
                    
Install as a Cake Tool

Excel Test Results SpecSync Plugin: SpecSync.Plugin.ExcelTestResults

This plugin can be used to provide test results for Ghekin scenarios from an Excel file. This might be useful when manual test executions have to be recorded.

You can find more information about the SpecSync sample plugins in the repository page.

It can match the rest results to the local test cases (scenarios) with:

  • Feature name
  • Feature file name (without folder names)
  • Scenario name
  • Test Case ID

For that you need to have an Excel file that contains some of the columns below (the columns can be renamed, see below).

  • Feature: The column that contains the feature name. Optional, should be specified when scenario names are not globally unique and the ID column is not specified.
  • Feature File: The column that contains the feature file name. Optional, should be specified when scenario names are not globally unique the ID column is not specified.
  • Scenario: The column that contains the scenario name. Optional, must be specified when the ID column is not specified.
  • ID: The column that contains the Test Case ID. Optional, must be specified when Scenario column is not specified.
  • Test Name: The column that contains the name of the test execution (displayed in Azure DevOps). Optional, the scenario name is used as a Test Name if there is no such column or if the cell is empty.
  • Outcome: The column that contains the outcome (Passed, Failed, NotExecuted). Mandatory.
  • Error: The column that contains the error message. Optional, no error message is recoded if not specified.

The plugin ignores the rows where none of the reference columns (Feature, Feature File, Scenario, ID) are specified or they are empty. To see the skipped rows, you should use verbose mode (-v).

By default the first sheet of the Excel file is processed, but your can specify the sheet name as a paramter to select another sheet:

"plugins": [
  {
    "packageId": "SpecSync.Plugin.ExcelTestResults",
    [...]
    "parameters": {
      "TestResultSheetName": "My Sheet"
    }
  }
]

You can use different column names, but in that case you need to configure the names by specifying any of the following plugin parameters:

  • FeatureColumnName
  • FeatureFileColumnName
  • ScenarioColumnName
  • OutcomeColumnName
  • TestCaseIdColumnName
  • TestNameColumnName
  • ErrorMessageColumnName

The Test Case ID can also be specified using prefixed format (e.g. tc:1234). The prefix (tc) can be configured with the "synchronization/testCaseTagPrefix" setting and the prefix separator (:) with the "synchronization/tagPrefixSeparators" setting. For example to allow IDs to be specified in the TC_1234 format, you can specify:

{
  [...]
  "synchronization": {
    "testCaseTagPrefix": "TC", // sets prefix to "TC"
    "tagPrefixSeparators": ["_", ":"] // allows both "_" and ":" as separators
  }
}

By default you need to specify the standardized outcome values, like Passed or Failed, but you can also use custom values as well if you specify them with the OutcomeMapping parameter. For example the following configuration enables to use PASS and FAIL:

"plugins": [
  {
    "packageId": "SpecSync.Plugin.ExcelTestResults",
    [...]
    "parameters": {
      "OutcomeMapping": "PASS=Passed,FAIL=Failed"
    }
  }
]

In order to use the plugin, you have to specify Excel for the --testResultFileFormat (or -f) command line option:

dotnet specsync publish-test-results -r ExcelTestResults.xlsx -f Excel

Implementation notes

The plugin finds the matching scenarios by case-sensitive equality. You can define different matching rules by changing the ExcelTestResultMatcher class.

The plugin loads the test result and the error message from the Excel file. You can load additional test result data (e.g. duration or step results) by extending the ExcelTestResultLoader class.

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.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.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 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

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
5.0.0 189 12/12/2025
1.3.0 289 10/18/2024
1.2.0 277 9/23/2024
1.1.0 281 9/16/2024
1.0.1 241 9/12/2024
1.0.0 340 12/21/2022