Commits

Miki Tebeka  committed fe247df

More premissive names

  • Participants
  • Parent commits 031a1c5
  • Tags v0.2.9

Comments (0)

Files changed (4)

+2014-02-19 version 0.2.9
+    * More permissive test names (github #13)
+
 2014-02-19 version 0.2.8
     * Fixed running examples (Luke Curley, github #11)
 

File data/gotest-num.out

+=== RUN TestBasic-8
+--- PASS: TestBasic-8 (0.00 seconds)
+ok      qbox.us/largefile   0.012s
 )
 
 const (
-	version = "0.2.8"
+	version = "0.2.9"
 
 	// gotest regular expressions
 
 	// === RUN TestAdd
-	gt_startRE = "^=== RUN:? ([a-zA-Z_][[:word:]]*)"
+	gt_startRE = "^=== RUN:? ([a-zA-Z_][^[:space:]]*)"
 
 	// --- PASS: TestSub (0.00 seconds)
 	// --- FAIL: TestSubFail (0.00 seconds)
 	// --- SKIP: TestSubSkip (0.00 seconds)
-	gt_endRE = "^--- (PASS|FAIL|SKIP): ([a-zA-Z_][[:word:]]*) \\((\\d+.\\d+)"
+	gt_endRE = "^--- (PASS|FAIL|SKIP): ([a-zA-Z_][^[:space:]]*) \\((\\d+.\\d+)"
 
 	// FAIL	_/home/miki/Projects/goroot/src/xunit	0.004s
 	// ok  	_/home/miki/Projects/goroot/src/anotherTest	0.000s

File go2xunit_test.go

 		t.Fatalf("expected error when at least one package failed to build")
 	}
 }
+
+func Test_nameWithNum(t *testing.T) {
+	_, err := loadGotest("data/gotest-num.out", t)
+	if err != nil {
+		t.Fatalf("didn't parse name with number")
+	}
+}