1. Miki Tebeka
  2. go2xunit

Commits

Miki Tebeka  committed a01f256 Merge

merge with upstream

  • Participants
  • Parent commits 00b8287, 619a09e
  • Branches default

Comments (0)

Files changed (1)

File go2xunit_test.go

View file
 import (
 	"os"
 	"testing"
-
-	"bitbucket.org/tebeka/go2xunit/types"
-	"bitbucket.org/tebeka/go2xunit/gocheck"
-	"bitbucket.org/tebeka/go2xunit/gotest"
 )
 
 func Test_NumFailed(t *testing.T) {
-	suite := &types.Suite{
-		Tests: []*types.Test{},
+	suite := &Suite{
+		Tests: []*Test{},
 	}
 	if suite.NumFailed() != 0 {
 		t.Fatal("found more than 1 failure in empty list")
 	}
 
-	suite.Tests = []*types.Test{
-		&types.Test{Failed: false},
-		&types.Test{Failed: true},
-		&types.Test{Failed: false},
+	suite.Tests = []*Test{
+		&Test{Failed: false},
+		&Test{Failed: true},
+		&Test{Failed: false},
 	}
 
 	if suite.NumFailed() != 1 {
 	}
 }
 
-func loadTests(filename string, t *testing.T) ([]*types.Suite, error) {
+func loadTests(filename string, t *testing.T) ([]*Suite, error) {
 	file, err := os.Open(filename)
 	if err != nil {
 		t.Fatalf("can't open %s - %s", filename, err)
 	}
 
-	return gotest.Parse(file)
+	return gt_Parse(file)
 }
 
 func Test_parseOutput(t *testing.T) {
 		t.Fatalf("can't open %s - %s", filename, err)
 	}
 
-	suites, err := gocheck.Parse(file)
+	suites, err := gc_Parse(file)
 
 	if err != nil {
 		t.Fatalf("can't parse %s - %s", filename, err)
 		t.Fatalf("can't open %s - %s", filename, err)
 	}
 
-	suites, err := gocheck.Parse(file)
+	suites, err := gc_Parse(file)
 
 	if err != nil {
 		t.Fatalf("can't parse %s - %s", filename, err)