Commit Graph

51 Commits (e8910bb33558a8e2742c40f644429545222bea7b)

Author SHA1 Message Date
Esdras Beleza e8910bb335 Add stats to suites and tests 2020-03-11 19:42:32 +11:00
Boyan 3ebf1ddaeb Revert PR #867 2020-02-20 07:56:11 +11:00
Corey McGregor 624f997379 fix(suite): Add Fatalf method to suite.TestingT for gomock compatibility 2020-02-19 07:05:10 +11:00
Boyan Soubachov 55d8b5740c Add interface tests for suite.T 2020-02-06 07:41:25 +11:00
Chris K 9dfcf7c562 suite: make suite.TestingT satisfy mock.TestingT
...by adding Logf method.
2020-02-05 20:52:22 +11:00
Keynan Pratt ea72eb9159 added Log/Skip methods as required by CI tests 2020-01-29 11:08:28 +11:00
Keynan Pratt dca7be2281 updated TestingSuite interface to use TestingT 2020-01-29 11:08:28 +11:00
Keynan Pratt d3e61647c0 removed Helper method from TestingT interface 2020-01-29 11:08:28 +11:00
Keynan Pratt 045d838faf changed dependency to interface, s.t. consumers can easily mock the testing.T type 2020-01-29 11:08:28 +11:00
devdinu 3c60a0e014 Merging suite_order_test in suite test, removing anonymous defer func call 2020-01-16 14:06:22 +11:00
Dinesh Kumar e7b6c14305 Remove parallel as that makes goroutines deadlock 2020-01-16 14:06:22 +11:00
Dinesh Kumar 0d3c8ce9f8 fixing suite teardown ordering issue
(cherry picked from commit 92c097a5af7b4bbbe3a66c2e7484f68194cd555a)
2020-01-16 14:06:22 +11:00
Leigh McCulloch 3b0d317f67 Fix code not gofmtd 2019-12-09 10:12:49 -07:00
Sergej Zagursky 10a9f47426 Show stack trace on panic 2019-02-28 14:40:23 -07:00
Tigran Saluev 2894c76efe Rename setupDone to suiteSetupDone 2019-02-14 09:28:04 -07:00
Tigran Saluev 943c6e8f43 Add test on suite setup skipping 2019-02-14 09:28:04 -07:00
Tigran Saluev af4cbaf11d Rerun build 2019-02-14 09:28:04 -07:00
Tigran Saluev 2696ec2b70 Fix tests 2019-02-14 09:28:04 -07:00
Tigran Saluev 3efd733edb Don't setup suite if no methods satisfy filter
When suite setup is long, the necessity to wait for all suite setups for testing one single method bothers a lot. Here's a little fix of that behavior.
2019-02-14 09:28:04 -07:00
Kyl Wellman 865fb2c8f5 Add support for subtests (go 1.7) 2019-01-02 10:25:22 -07:00
Iaroslav Ciupin 660f15d67d Recover panic in suite 2018-12-24 10:37:47 -07:00
Ben Blount 3104bf5483 Use Go 1.7 subtests so suites can properly nest
This removes dependencies on Go Testing Internals and
also enables test methods within a suite to have subtests.

Fixes #346
2017-05-29 12:27:49 +01:00
Ernesto Jiménez cd206b0fb2 Merge pull request #318 from esdrasbeleza/master
Add callbacks to be run after and before each test
2016-12-17 13:30:15 -06:00
Esdras Beleza 5e72f93a89 Remove timestamp from callback 2016-09-26 13:48:19 -03:00
Ernesto Jiménez bfe70f3776 Namespace suite flag `m` to `testify.m` 2016-09-24 19:52:00 +01:00
Esdras Beleza bf7a93e70c Add timestamp 2016-06-26 18:36:07 -03:00
Esdras Beleza fcedfe2aad Add callbacks to run before and after each test 2016-06-26 18:35:37 -03:00
Ernesto Jiménez 1661650f98 Fix most golint warnings 2016-01-09 19:30:22 +01:00
Ernesto Jiménez 95644cab17 Fixes issue #149 2015-11-01 15:12:29 +00:00
praveen shukla 6e25351910 modified the go.doc in suite package. 2015-10-20 10:51:47 +05:30
Samuel Nelson 354307edce Add getters for *assert.Assertions and *require.Assertions 2015-01-19 12:15:53 -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