Tyler
3e03dde724
Merge pull request #54 from jbowes/master
...
Attempt type conversion in assert.Equal
2014-06-04 08:30:23 -06:00
James Bowes
21382c1202
Attempt type conversion in assert.Equal
...
If the two values being tested are of compatible types, convert one
value to the other's type before comparing them. This allows
`assert.Equal(int64(123), uint64(123))` to pass.
2014-06-03 19:01:48 -03:00
Tyler
410219ae82
Merge pull request #53 from kejadlen/patch-1
...
Use godoc instead of go.pkgdoc
Thanks for the fix!
2014-05-15 09:52:45 -06:00
Alpha Chen
65450415d0
Use godoc instead of go.pkgdoc
2014-05-13 14:12:54 -07:00
Mat Ryer
8eaef7fd24
Merge pull request #49 from seantalts/noerrormsg
...
Change NoError formatting. fixes #48
2014-04-25 08:23:39 -06:00
Tyler Bunnell
d3d427864d
Fix merge conflict
2014-04-22 10:01:40 -06:00
Tyler
84ae2f5461
Merge pull request #50 from mikereedell/master
...
Fixing issue 33
Looks good! Thanks!
2014-04-15 09:52:35 -06:00
mreedell
2c7459d4ba
Fixing issue 33
2014-04-14 15:24:44 -04:00
Tyler
0d84e9b479
Merge pull request #47 from pietern/fix-assertcalled
...
Fix use of AnythingOfType with AssertCalled
2014-04-10 15:20:40 -06:00
Sean Talts
c469b75615
Change NoError formatting.
2014-04-04 11:36:55 -04:00
Pieter Noordhuis
939e66beb2
Fix use of AnythingOfType with AssertCalled
2014-04-01 15:52:39 -07:00
Guncha
5114cbfc4a
Fix #45 : assert.Empty should work with channels
2014-03-31 19:10:48 -04:00
Mat Ryer
37614ac277
Merge pull request #44 from seantalts/suite_logging_fix
...
Add test for logging capture.
2014-03-10 23:42:52 -06: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
Mat Ryer
24fb97e3a8
Merge pull request #39 from xsleonard/exacterror
...
ExactError, asserts that err is not nil and its string matches
2014-03-07 11:27:35 -07:00
Mat Ryer
517a8fc353
Merge pull request #43 from seantalts/suite_logging_fix
...
Have testing.RunTests run the tests we find with their setup methods.
2014-03-07 11:26:55 -07: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
Mat Ryer
aff4bd8fb5
Merge pull request #42 from viblo/master
...
Rename the error argument from theError to err in Error asserts.
2014-03-07 09:43:49 -07:00
Victor Blomqvist
12fea7c16c
Rename the error argument from theError to err in Error asserts.
2014-03-07 17:19:03 +08:00
Mat Ryer
6b8df2220f
Update README.md
2014-03-06 16:04:07 -07:00
Steve Leonard
e763434382
rename to EqualError
2014-02-15 15:06:23 -05:00
Steve Leonard
92af479c56
ExactError, asserts that err is not nil and its string matches
2014-02-15 12:24:39 -05:00
Tyler
bd93f05fd7
Merge pull request #37 from rgarcia/custom-type-expectations
2014-02-10 14:04:13 -07:00
Rafael Garcia
b222794f02
failing test for #31
2014-02-05 15:37:34 -08:00
Mat Ryer
9cc77fa253
Fixes #2
2014-01-28 10:18:27 -07:00
Mat Ryer
304892e553
deprecated TestResponseWriter
2014-01-28 10:15:59 -07:00
Mat Ryer
6d984ec0a3
added simple package import example
2014-01-28 10:11:02 -07:00
Mat Ryer
df4e46959f
added test to prove different args
2014-01-28 09:56:42 -07:00
Mat Ryer
a3ce369ac0
Merge pull request #32 from onsi/master
...
receive *testing.T via an interface
2014-01-28 08:45:01 -08:00
Onsi Fakhouri
59b459277c
Define a TestingT interface in assertions.go and mock.go
2014-01-20 18:25:43 -08:00
Tyler
44d1c28acd
Merge pull request #35 from chakrit/master
...
Make isEmpty() properly handles maps. [fix #34 ]
2014-01-18 20:19:42 -08:00
Chakrit Wichian
f51780437f
Make isEmpty() properly handles maps. [ fix #34 ]
2014-01-19 10:30:16 +07:00
Mat Ryer
18d938d6c5
Merge pull request #28 from maraino/master
...
Fix support for AnythingOfTypeArgument.
2013-12-17 13:15:24 -08:00
Mariano Cano
84b345c662
Fix support for AnythingOfTypeArgument.
2013-12-05 10:18:56 -08:00
Mat Ryer
4c55a02a9d
Merge pull request #26 from stretchr/suite_doc_update
...
Updated README with a link to the suite package section
2013-10-30 12:43:23 -07:00
Samuel Nelson
3abb13a8ac
Updated README with a link to the suite package section
2013-10-30 13:43:49 -06:00
Mat Ryer
9ea7840c54
Merge pull request #24 from stretchr/feature/testing-suite
...
Testing Suite (and setup/teardown) functionality
2013-10-30 12:33:30 -07:00
Mat Ryer
afe1438080
Merge pull request #23 from realistschuckle/master
...
Added Repeatability Statements to Expectations
2013-10-29 13:13:26 -07:00
Samuel Nelson
049f306907
Merge remote-tracking branch 'origin/master' into feature/testing-suite
...
Pulling latest changes to testify into the feature/testing-suite branch,
since I'm using the feature/testing-suite branch for production code and
want to make sure I'm also using all of the latest changes from master.
2013-10-23 13:19:29 -06: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
Tyler Bunnell
a4c09999de
WrittenHeaderInt->StatusCode
2013-10-14 11:51:42 -06:00
Curtis Schlak
ab70c9a56c
Now expectations for method calls abides the repeatability argument.
2013-10-04 23:19:54 -05:00
Curtis Schlak
40e4720477
Added repeatability to On/Return expectations.
2013-10-04 23:15:50 -05:00