|
9 | 9 | testRunner.Connect(username: "toscamtest", password: "toscamtest", database: "CA40");
|
10 | 10 |
|
11 | 11 | // Runs tests for the user tosamtest
|
12 |
| - testRunner.RunTests(paths: "toscamtest"); |
13 |
| - |
14 | 12 | var events = new List<@event>();
|
15 |
| - testRunner.ConsumeResult(@event => |
| 13 | + |
| 14 | + await testRunner.RunTestsAsync("toscamtest", @event => |
16 | 15 | {
|
17 | 16 | events.Add(@event);
|
18 | 17 | });
|
|
22 | 21 | var testRunner = new RealTimeTestRunner();
|
23 | 22 | testRunner.Connect(username: "toscamtest", password: "toscamtest", database: "CA40");
|
24 | 23 |
|
25 |
| - // Runs tests for the user tosamtest with coverage |
26 |
| - testRunner.RunTestsWithCoverage(path: "toscamtest", |
27 |
| - coverageSchema: "toscam", |
28 |
| - includeObjects: new List<string>() { "pa_m720", "pa_m770" }, |
29 |
| - excludeObjects: null); |
30 |
| - |
31 | 24 | var events = new List<@event>();
|
32 |
| - testRunner.ConsumeResult(@event => |
33 |
| - { |
34 |
| - events.Add(@event); |
35 |
| - }); |
36 | 25 |
|
37 |
| - var report = testRunner.GetCoverageReport(); |
| 26 | + string htmlReport = await testRunner.RunTestsWithCoverageAsync(path: "toscamtest", |
| 27 | + @event => { events.Add(@event); }, |
| 28 | + coverageSchema: "toscam", |
| 29 | + includeObjects: new List<string>() { "pa_m720", "pa_m770" }); |
38 | 30 |
|
39 | 31 | ## Releases
|
| 32 | + |
40 | 33 | Releases are published to nuGet: https://www.nuget.org/packages/utPLSQL.Api/
|
41 | 34 |
|
42 | 35 | ## Issues
|
|
0 commit comments