Skip to content

Commit 6d576d0

Browse files
committed
fix: update public API snapshot for hierarchical tags
1 parent 49efaa0 commit 6d576d0

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

TUnit.PublicAPI/Tests.Core_Library_Has_No_API_Changes.DotNet8_0.verified.txt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -579,6 +579,7 @@ namespace
579579
public void AddCategory(string category) { }
580580
public void AddParallelConstraint(. constraint) { }
581581
public void AddProperty(string key, string value) { }
582+
public void AddTag(string tag) { }
582583
public string GetDisplayName() { }
583584
public void SetDisplayName(string displayName) { }
584585
public void SetDisplayNameFormatter( formatterType) { }
@@ -1284,6 +1285,14 @@ namespace
12841285
public static . InitializeStaticPropertiesForType( type) { }
12851286
}
12861287
public class TUnitAttribute : { }
1288+
[(.Assembly | .Class | .Method, AllowMultiple=true)]
1289+
public class TagAttribute : .TUnitAttribute, ., .
1290+
{
1291+
public TagAttribute(string tag) { }
1292+
public int Order { get; }
1293+
public string Tag { get; }
1294+
public . OnTestDiscovered(.DiscoveredTestContext context) { }
1295+
}
12871296
[(.Method)]
12881297
public sealed class TestAttribute : .BaseTestAttribute
12891298
{
@@ -1431,9 +1440,11 @@ namespace
14311440
public required string MethodName { get; init; }
14321441
public string[] Properties { get; init; }
14331442
public int RepeatCount { get; init; }
1443+
public string[] Tags { get; init; }
14341444
public required string TestId { get; init; }
14351445
public bool HasCategory(string category) { }
14361446
public bool HasProperty(string key, string? value = null) { }
1447+
public bool HasTag(string tag) { }
14371448
}
14381449
public class TestDetails : ., ., ., ., ., .
14391450
{
@@ -1456,6 +1467,7 @@ namespace
14561467
public required string MethodName { get; init; }
14571468
public int RetryLimit { get; set; }
14581469
public required ReturnType { get; set; }
1470+
public .<string> Tags { get; }
14591471
public required object?[] TestClassArguments { get; set; }
14601472
public .<string, object?> TestClassInjectedPropertyArguments { get; init; }
14611473
public []? TestClassParameterTypes { get; set; }
@@ -2425,6 +2437,7 @@ namespace .Interfaces
24252437
.<, .<>> AttributesByType { get; }
24262438
.<string> Categories { get; }
24272439
.<string, .<string>> CustomProperties { get; }
2440+
.<string> Tags { get; }
24282441
.<> GetAllAttributes();
24292442
.<T> GetAttributes<T>()
24302443
where T : ;

0 commit comments

Comments
 (0)