21 Commits

Author SHA1 Message Date
Samuel Nelson
4ecf7fc077 Allow custom test name formats
When using suites, test names were just the raw suite method name, but that's often not
detailed enough to know what the problem is.  This commit adds the ability to pass a custom
name format using certain formatting marks (sort of similar to templating strings) to
include the name of the function that called Run or NamedRun, the name of the suite's type,
and/or the name of the method.
2015-01-10 14:59:21 -07:00
Jon Gjengset
81a69ed105 Defer suite teardown to align with test teardown 2014-11-25 19:58:50 -05:00
Jon Gjengset
576f6382c0 Add test for suite Setup/TearDown with Skip 2014-11-25 19:57:20 -05:00
Jon Gjengset
c1b496c5c9 Ensure TearDownTest is called after Skip 2014-11-03 17:46:03 -05:00
Oliver Beattie
8fb35d6c24 Fix up TestSuiteLogging in verbose mode 2014-08-17 17:34:01 +01:00
Tyler Bunnell
459056d303 Merge forward assertions. 2014-06-30 11:34:00 -06:00
Zaur Abasmirzoev
d68e894fba Clear staff 2014-06-16 20:06:15 +04:00
Zaur Abasmirzoev
78cdc04039 Specify the method of the test suite 2014-06-16 19:50:34 +04:00
Sean Talts
c469b75615 Change NoError formatting. 2014-04-04 11:36:55 -04:00
SATO taichi
7675c8d8af add more examples to README and doc.go. 2014-03-11 17:52:22 +09:00
taichi
52f556e421 Simplify the API by using the new assertion. 2014-03-11 16:39:56 +09:00
Sean Talts
ec1a3f179c Remove debug print, go fmt my lines 2014-03-07 14:57:40 -05:00
Sean Talts
814eb1589b Add test for logging capture. 2014-03-07 14:51:52 -05:00
Sean Talts
72c1136caa Formatting, restore T after test is over just in case 2014-03-07 12:54:55 -05:00
Sean Talts
5739ba4d16 Have testing.RunTests run the tests we find with their setup methods. 2014-03-07 12:14:37 -05:00
Samuel Nelson
46e05f3e57 Removing unnecessary defer (the call was already at the end of the function it was in
)
2013-10-15 12:02:07 -06:00
Samuel Nelson
c737e6cc4e Some clarification for the documentation in the example test suite. 2013-10-15 11:56:36 -06:00
Samuel Nelson
cf79884357 One more documentation update for suites 2013-10-15 11:46:59 -06:00
Samuel Nelson
2d29e774c7 Updated documentation with some information about testing suites 2013-10-15 11:35:37 -06:00
Samuel Nelson
11dce72087 Renamed before/after methods and interfaces to setup/teardown 2013-10-15 10:32:35 -06:00
Sam Nelson
a4c24896e3 Initial buildup/teardown functionality for issue 19 2013-10-14 15:13:28 -06:00