Skip to content

Commit d8b7164

Browse files
committed
sdf
1 parent 0aafd1a commit d8b7164

File tree

2 files changed

+24
-6
lines changed

2 files changed

+24
-6
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
using System;
2+
using System.Threading.Tasks;
3+
using Microsoft.Playwright.TestAdapter;
4+
using Xunit.Sdk;
5+
using Xunit.v3;
6+
7+
[assembly: TestPipelineStartup(typeof(MyStartupClass))]
8+
9+
public class MyStartupClass : ITestPipelineStartup
10+
{
11+
public async ValueTask StartAsync(IMessageSink diagnosticMessageSink)
12+
{
13+
throw new NotImplementedException();
14+
Console.Error.WriteLine("Starting the test pipeline");
15+
Console.Error.WriteLine("BrowserName: " + PlaywrightSettingsProvider.BrowserName);
16+
// Read and store settings
17+
}
18+
19+
public async ValueTask StopAsync()
20+
{
21+
throw new NotImplementedException();
22+
// Read and store settings
23+
}
24+
}

src/Playwright.Xunit.v3/WorkerAwareTest.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,6 @@ internal class Worker
4545
public Dictionary<string, IWorkerService> Services = [];
4646
}
4747

48-
[Class]
49-
public WorkerAwareTest()
50-
{
51-
Console.WriteLine("WorkerAwareTest::WorkerAwareTest: " + PlaywrightSettingsProvider.BrowserName);
52-
}
53-
5448
public int WorkerIndex { get; internal set; }
5549

5650
public async Task<T> RegisterService<T>(string name, Func<Task<T>> factory) where T : class, IWorkerService

0 commit comments

Comments
 (0)