Skip to content

Commit b9f4ebb

Browse files
authored
Use custom test framework in the debugger integration tests (#7002)
## Summary of changes Update the debugger integration tests to use our custom test framework ## Reason for change Our custom test framework adds multiple features: - Logging each method as it starts, so we know which test was running if we get a failure - Warnings about long-running (likely hung) tests - Randomizing test order execution to detect flake and reporting metrics to DD - Handling automatic retry for tests marked `[Flaky]` ## Implementation details Add the `CustomTestFramework` attribute and implementation ## Test coverage This is the test - as long as the tests run, we're ok ## Other details Hopefully this will help detect flake/hanging issues in the debugger tests
1 parent ab7bdfc commit b9f4ebb

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
// <copyright file="CustomTestFramework.cs" company="Datadog">
2+
// Unless explicitly stated otherwise all files in this repository are licensed under the Apache 2 License.
3+
// This product includes software developed at Datadog (https://www.datadoghq.com/). Copyright 2017 Datadog, Inc.
4+
// </copyright>
5+
6+
using Xunit;
7+
using Xunit.Abstractions;
8+
9+
[assembly: TestFramework("Datadog.Trace.Debugger.IntegrationTests.CustomTestFramework", "Datadog.Trace.Debugger.IntegrationTests")]
10+
11+
namespace Datadog.Trace.Debugger.IntegrationTests
12+
{
13+
public class CustomTestFramework : TestHelpers.CustomTestFramework
14+
{
15+
public CustomTestFramework(IMessageSink messageSink)
16+
: base(messageSink)
17+
{
18+
}
19+
}
20+
}

0 commit comments

Comments
 (0)