@@ -39,7 +39,7 @@ func TestCommand(testPath string, ctx AddCommandContext) error {
3939 default :
4040 fmt .Println ("Starting test file " + testPath + "..." )
4141 fmt .Println ("" )
42- result , err = testFile (testPath , ctx .Filters )
42+ result , err = testFile (testPath , "" , ctx .Filters )
4343 }
4444
4545 if err != nil {
@@ -85,17 +85,16 @@ func convergeResults(result runtime.Result, new runtime.Result) runtime.Result {
8585 return result
8686}
8787
88- func testFile (filePath string , fileName string , filters runtime.Filters ) (<- chan runtime.TestResult , error ) {
89- content , err := readFile (filePath , fileName )
88+ func testFile (filePath string , fileName string , filters runtime.Filters ) (runtime.Result , error ) {
89+ s , err := readFile (filePath , fileName )
9090 if err != nil {
9191 return runtime.Result {}, fmt .Errorf ("Error " + err .Error ())
9292 }
9393
94- return execute (content , filters )
94+ return execute (s , filters )
9595}
9696
97- func execute (s suite.Suite , title string ) (runtime.Result , error )
98- {
97+ func execute (s suite.Suite , filters runtime.Filters ) (runtime.Result , error ) {
9998 tests := s .GetTests ()
10099 if len (filters ) != 0 {
101100 tests = []runtime.TestCase {}
0 commit comments