@@ -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,8 +53,12 @@ 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
@@ -73,6 +77,15 @@ public String GetVersion()
7377 /// <param name="excludeObjects">List of objects to exclude</param>
7478 public abstract void RunTestsWithCoverage ( List < string > paths , List < string > coverageSchemas = null , List < string > includeObjects = null , List < string > excludeObjects = null ) ;
7579
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 ) ;
88+
7689 /// <summary>
7790 /// Consumes the results and calls the callback action on each result
7891 /// </summary>
@@ -110,6 +123,7 @@ public string GetCoverageReport()
110123 }
111124
112125 reader . Close ( ) ;
126+ cmd . Dispose ( ) ;
113127
114128 return sb . ToString ( ) ;
115129 }
0 commit comments