8000 Update Test and README.md to new interface · utPLSQL/utPLSQL-dotnet-api@cc7d175 · GitHub
[go: up one dir, main page]

Skip to content

Commit cc7d175

Browse files
committed
Update Test and README.md to new interface
1 parent 6e80a9c commit cc7d175

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
testRunner.Connect(username: "toscamtest", password: "toscamtest", database: "CA40");
1010

1111
// Runs tests for the user tosamtest
12-
testRunner.RunTests(type: Type.User, owner: null, name: "toscamtest", procedure: null);
12+
testRunner.RunTests(paths: new List<string>() { "toscamtest" });
1313

1414
var events = new List<@event>();
1515
testRunner.ConsumeResult(@event =>
@@ -22,9 +22,10 @@
2222
var testRunner = new RealTimeTestRunner();
2323
testRunner.Connect(username: "toscamtest", password: "toscamtest", database: "CA40");
2424

25-
// Runs tests for the user tosamtest
26-
testRunner.RunTestsWithCoverage(type: Type.User, owner: null, name: "toscamtest", procedure: null,
27-
coverageSchemas: "'toscam'", includeObjects: "'pa_m720','pa_m770'",
25+
// Runs tests for the user tosamtest with coverage
26+
testRunner.RunTestsWithCoverage(paths: new List<string>() { "toscamtest" },
27+
coverageSchemas: new List<string>() { "toscam" },
28+
includeObjects: new List<string>() { "pa_m720", "pa_m770" },
2829
excludeObjects: null);
2930

3031
var events = new List<@event>();

utPLSQL.Api/utPLSQL.Api.Test/RealTimeTestRunnerTest.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public void TestRunTests()
1414
var testRunner = new RealTimeTestRunner();
1515
testRunner.Connect(username: "toscamtest", password: "toscamtest", database: "CA40");
1616

17-
testRunner.RunTests(paths: new List<string>(new string[] { "toscamtest" }));
17+
testRunner.RunTests(paths: new List<string>() { "toscamtest" });
1818

1919
var events = new List<@event>();
2020
testRunner.ConsumeResult(@event =>
@@ -32,9 +32,9 @@ public void TestRunTestsWithCoverage()
3232
var testRunner = new RealTimeTestRunner();
3333
testRunner.Connect(username: "toscamtest", password: "toscamtest", database: "CA40");
3434

35-
testRunner.RunTestsWithCoverage(paths: new List<string>(new string[] { "toscamtest" }),
36-
coverageSchemas: new List<string>(new string[] { "toscam" }),
37-
includeObjects: new List<string>(new string[] { "pa_m720", "pa_m770" }),
35+
testRunner.RunTestsWithCoverage(paths: new List<string>() { "toscamtest" },
36+
coverageSchemas: new List<string>() { "toscam" },
37+
includeObjects: new List<string>() { "pa_m720", "pa_m770" },
3838
excludeObjects: null);
3939

4040
var events = new List<@event>();

0 commit comments

Comments
 (0)
0