SpecSync.Plugin.GenericTestResultMatcher
5.0.0
Prefix Reserved
dotnet add package SpecSync.Plugin.GenericTestResultMatcher --version 5.0.0
NuGet\Install-Package SpecSync.Plugin.GenericTestResultMatcher -Version 5.0.0
<PackageReference Include="SpecSync.Plugin.GenericTestResultMatcher" Version="5.0.0" />
<PackageVersion Include="SpecSync.Plugin.GenericTestResultMatcher" Version="5.0.0" />
<PackageReference Include="SpecSync.Plugin.GenericTestResultMatcher" />
paket add SpecSync.Plugin.GenericTestResultMatcher --version 5.0.0
#r "nuget: SpecSync.Plugin.GenericTestResultMatcher, 5.0.0"
#:package SpecSync.Plugin.GenericTestResultMatcher@5.0.0
#addin nuget:?package=SpecSync.Plugin.GenericTestResultMatcher&version=5.0.0
#tool nuget:?package=SpecSync.Plugin.GenericTestResultMatcher&version=5.0.0
Generic Test Result Matcher SpecSync Plugin: SpecSync.Plugin.GenericTestResultMatcher
A SpecSync plugin that can be used to override test result matching rules.
You can find more information about the SpecSync sample plugins in the repository page.
- Plugin package: SpecSync.Plugin.GenericTestResultMatcher
- Plugin source: SpecSync.Plugin.GenericTestResultMatcher
- Sample project: SampleProject
The matching rules have to be provided as pluign parameter as regular expressions that might include special placeholders to refer to the local test case details (see list below).
"plugins": [
{
"packageId": "SpecSync.Plugin.GenericTestResultMatcher",
[...]
"parameters": {
"Name": "^{local-test-case-name}$"
}
}
]
The following parameters can be used:
Name- matches the test result "name" parameterClassName- matches the test result "className" or "classname" parameterMethodName- matches the test result "methodName" parameter (TRX only)StdOut- matches the test result outputTestResultProperties- matches the test result custom properties, see example below
In order to see the "name", "className", "methodName" or the custom properties you can run
the SpecSync "publish-test-results" command with additional -v --diagCategories TestResult.
For testing it is also recommended to use the --dryRun option that collects all information, but does not publish the results.
The following placeholeds can be used:
{local-test-case-name}- the name of the local test case (name of the scenario){local-test-case-container-name}- the name of the local test case container (name of the feature){local-test-case-container-filename}- the file name of the source file with extension{test-case-id}- the ID of the test case, see example below
In some cases the test result also contains the Test Case ID that could be used for matching. Assuming the Test Case ID is added to the result as a custom parameter test_case_id, the configuration could be the following:
"plugins": [
{
"packageId": "SpecSync.Plugin.GenericTestResultMatcher",
[...]
"parameters": {
"TestResultProperties": {
"test_case_id": "^{test-case-id}$"
}
}
}
]
| 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. 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. |
-
.NETStandard 2.0
- SpecSync.PluginDependency (>= 5.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Please check https://github.com/specsolutions/specsync-sample-plugins/releases for release note details.