OLD | NEW |
1 // These initial tests are for bootstrapping. They verify that we can | 1 // These initial tests are for bootstrapping. They verify that we can |
2 // basically use the testing infrastructure itself to check if the test | 2 // basically use the testing infrastructure itself to check if the test |
3 // system is working. | 3 // system is working. |
4 // | 4 // |
5 // These tests use will break down the test runner badly in case of | 5 // These tests use will break down the test runner badly in case of |
6 // errors because if they simply fail, we can't be sure the developer | 6 // errors because if they simply fail, we can't be sure the developer |
7 // will ever see anything (because failing means the failing system | 7 // will ever see anything (because failing means the failing system |
8 // somehow isn't working! :-) | 8 // somehow isn't working! :-) |
9 // | 9 // |
10 // Do not assume *any* internal functionality works as expected besides | 10 // Do not assume *any* internal functionality works as expected besides |
11 // what's actually tested here. | 11 // what's actually tested here. |
12 | 12 |
13 package gocheck_test | 13 package gocheck_test |
14 | 14 |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 | 73 |
74 func (s *BootstrapS) TestRunDoesntShowSuccesses(c *gocheck.C) { | 74 func (s *BootstrapS) TestRunDoesntShowSuccesses(c *gocheck.C) { |
75 output := String{} | 75 output := String{} |
76 gocheck.Run(&SuccessHelper{}, &gocheck.RunConf{Output: &output}) | 76 gocheck.Run(&SuccessHelper{}, &gocheck.RunConf{Output: &output}) |
77 if strings.Index(output.value, "Expected success!") != -1 { | 77 if strings.Index(output.value, "Expected success!") != -1 { |
78 critical(fmt.Sprintf("RunWithWriter() output contained a success
ful "+ | 78 critical(fmt.Sprintf("RunWithWriter() output contained a success
ful "+ |
79 "test! Got: %#v", | 79 "test! Got: %#v", |
80 output.value)) | 80 output.value)) |
81 } | 81 } |
82 } | 82 } |
OLD | NEW |