@@ -20,7 +20,7 @@ public abstract class TestRunner<T>
2020
2121 /// <summary>
2222 /// Connects to the database.
23- /// The TestRunner uses two connections. One for executing the tests and one for consuming the reuslts
23+ /// The TestRunner uses two connections. One for executing the tests and one for consuming the results
2424 /// </summary>
2525 /// <param name="username">Database username</param>
2626 /// <param name="password">Database password</param>
@@ -53,16 +53,20 @@ public String GetVersion()
5353 var cmd = new OracleCommand ( "select ut.version() from dual" , produceConnection ) ;
5454 OracleDataReader reader = cmd . ExecuteReader ( ) ;
5555 reader . Read ( ) ;
56+
5657 var version = reader . GetString ( 0 ) ;
58+
5759 reader . Close ( ) ;
60+ cmd . Dispose ( ) ;
61+
5862 return version ;
5963 }
6064
6165 /// <summary>
6266 /// Run tests
6367 /// </summary>
64- /// <param name="paths">List of path expressions</param>
65- public abstract void RunTests ( List < string > paths ) ;
68+ /// <param name="paths">Path expressions</param>
69+ public abstract void RunTests ( params string [ ] paths ) ;
6670
6771 /// <summary>
6872 /// Run tests with coveage
@@ -71,7 +75,16 @@ public String GetVersion()
7175 /// <param name="coverageSchemas">List of schemas to cover</param>
7276 /// <param name="includeObjects">List of objects to include</param>
7377 /// <param name="excludeObjects">List of objects to exclude</param>
74- public abstract void RunTestsWithCoverage ( List < string > paths , List < string > coverageSchemas , List < string > includeObjects , List < string > excludeObjects ) ;
78+ public abstract void RunTestsWithCoverage ( List < string > paths , List < string > coverageSchemas = null , List < string > includeObjects = null , List < string > excludeObjects = null ) ;
79+
80+ /// <summary>
81+ /// Run tests with coveage
82+ /// </summary>
83+ /// <param name="paths">The path</param>
84+ /// <param name="coverageSchema">The schemas to cover</param>
85+ /// <param name="includeObjects">List of objects to include</param>
86+ /// <param name="excludeObjects">List of objects to exclude</param>
87+ public abstract void RunTestsWithCoverage ( string path , string coverageSchema = null , List < string > includeObjects = null , List < string > excludeObjects = null ) ;
7588
7689 /// <summary>
7790 /// Consumes the results and calls the callback action on each result
@@ -110,6 +123,7 @@ public string GetCoverageReport()
110123 }
111124
112125 reader . Close ( ) ;
126+ cmd . Dispose ( ) ;
113127
114128 return sb . ToString ( ) ;
115129 }
0 commit comments