Skip to content

Commit 75dcc98

Browse files
authored
Add custom tags (#6)
1 parent e2221a4 commit 75dcc98

File tree

5 files changed

+15
-5
lines changed

5 files changed

+15
-5
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@ htmlcov
88
!.vscode/launch.json
99
!.vscode/extensions.json
1010
nuget_key.txt
11-
coverage.xml
11+
coverage.xml
12+
/.vs

VisualRegressionTracker/Api.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,9 @@
244244
"device": {
245245
"type": "string"
246246
},
247+
"customTags": {
248+
"type": "string"
249+
},
247250
"branchName": {
248251
"type": "string"
249252
},

VisualRegressionTracker/VisualRegressionTracker.cs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ public async Task<TestRunResult> Track(
178178
string browser = null,
179179
string viewport = null,
180180
string device = null,
181+
string customTags = null,
181182
double? diffTollerancePercent = null,
182183
IEnumerable<IgnoreAreaDto> ignoreAreas = null)
183184
{
@@ -192,6 +193,7 @@ public async Task<TestRunResult> Track(
192193
Browser = browser,
193194
Viewport = viewport,
194195
Device = device,
196+
CustomTags = customTags,
195197
DiffTollerancePercent = diffTollerancePercent ?? 0,
196198
IgnoreAreas = ignoreAreas == null ? null : new List<IgnoreAreaDto>(ignoreAreas)
197199
};
@@ -219,6 +221,7 @@ public Task<TestRunResult> Track(
219221
string browser = null,
220222
string viewport = null,
221223
string device = null,
224+
string customTags = null,
222225
double? diffTollerancePercent = null,
223226
IEnumerable<IgnoreAreaDto> ignoreAreas = null)
224227
{
@@ -230,7 +233,7 @@ public Task<TestRunResult> Track(
230233
name,
231234
imageBase64,
232235
cancellationToken,
233-
os, browser, viewport, device, diffTollerancePercent, ignoreAreas
236+
os, browser, viewport, device, customTags, diffTollerancePercent, ignoreAreas
234237
);
235238
}
236239

@@ -242,6 +245,7 @@ public Task<TestRunResult> Track(
242245
string browser = null,
243246
string viewport = null,
244247
string device = null,
248+
string customTags = null,
245249
double? diffTollerancePercent = null,
246250
IEnumerable<IgnoreAreaDto> ignoreAreas = null)
247251
{
@@ -251,7 +255,7 @@ public Task<TestRunResult> Track(
251255
name,
252256
memoryStream,
253257
cancellationToken,
254-
os, browser, viewport, device, diffTollerancePercent, ignoreAreas
258+
os, browser, viewport, device, customTags, diffTollerancePercent, ignoreAreas
255259
);
256260
}
257261
}

VisualRegressionTracker/VisualRegressionTracker.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
1+
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
33
<TargetFramework>net5.0</TargetFramework>
44
<PackageId>VisualRegressionTracker</PackageId>
5-
<Version>4.7.0</Version>
5+
<Version>4.7.1</Version>
66
<Authors>Daniel Crowe</Authors>
77
<Company>Visual Regression Tracker</Company>
88
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>

tests/VisualRegressionTracker.Tests/VisualRegressionTrackerTests.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,7 @@ public async Task Track()
241241
Browser = "browser",
242242
Viewport = "viewport",
243243
Device = "device",
244+
CustomTags = "customTags",
244245
DiffTollerancePercent = 15,
245246
IgnoreAreas = new []
246247
{
@@ -259,6 +260,7 @@ public async Task Track()
259260
browser: "browser",
260261
viewport: "viewport",
261262
device: "device",
263+
customTags: "customTags",
262264
diffTollerancePercent: 15,
263265
ignoreAreas: new[]
264266
{

0 commit comments

Comments
 (0)