Skip to content

Releases: stretchr/testify

v1.3.0

05 Jan 20:09
Compare
Choose a tag to compare

Pull requests included in this release:

  • #678 - Fixed incorrect comment
  • #661 - Allow assert.Equal on string type alias without panicking on failure
  • #659 - Add Go1.11 to CI
  • #682 - update comment to match function name
  • #688 - Bump Go versions and use '.x' to always get latest minor versions
  • #648 - Update the LICENSE to match the 'standard' MIT license file
  • #699 - Support arbitrary objects as the sole element in msgAndArgs
  • #696 - Recover panic in suite
  • #655 - Add support for subtests (go 1.7)
  • #607 - Add go.mod and go.modverify
  • #670 - Fix typo ("PASS" -> "FAIL")
  • #712 - Preserve stack frame for mock parent method call
  • #707 - fix for comparing kinds
  • #697 - Update readme to deprecate http and include available packages

v1.2.2

09 Jun 13:13
Compare
Choose a tag to compare
  • f35b8ab - Restore type information to matched output message
  • e494407 - Use %v to print matched argument values
  • 38eb60e - http_assertions: regenerate
  • adc0360 - http_assertions: fix docs (missing methods)
  • 26d6fa0 - More concrete error in Panics and PanicsWithValue
  • 1c264b1 - Refactor ObjectsAreEqual()
  • 2a15e20 - support diff display for string variables
  • ef2d015 - Run generator
  • 89226b8 - Compact template
  • 6c9d18a - Optimise template
  • c679ae2 - add function aliases for common assert and requires function signatures to make table driven tests easier
  • 380174f - Add placeholder example to docs
  • 33951ec - Add T object and Test method to Mock
  • 20dae58 - mock_test: remove unecessary code
  • 4c1331b - Anything: remove unecessary type
  • 921da25 - Displaying mismatch information of arguments diff while panic for closest function call. closes #556
  • 6efb0c4 - Adding url.Values to request RawQuery, fixes 522
  • b89eecf - Improve errors from mock assertions
  • 0bfbef4 - Modify AssertCalled and AssertNotCalled to give better error messages
  • bfc7630 - Add note about supported go versions to readme
  • 662d1e6 - Bump go version to 1.10
  • be8372a - Adding logging when mock assertions fails
  • a726187 - Fix vim-go integration and other editors
  • 8824eb4 - Store CallerInfo when On() is called and print for missing calls during AssertExpectations.

Version 1.2.1 - Pruning dependencies and fixing typos+docs

31 Jan 23:30
Compare
Choose a tag to compare
  • 12b6f73 - Docs: Remove superfluous parenthesis
  • 85c7900 - Correct typo in assert.InDeltaMapValues
  • 33e9130 - Prune vendor & update deps
  • 5f831d4 - Print missing FAIL during AssertExpectation
  • 87b1dfb - Remove returns info from assertion docs
  • bf45a85 - Skip vendored packages from tests
  • 2c9035a - Changed mock assertions text output to be non-unicode friendly
  • 05aa1d4 - Remove outdated info from README

Version 1.2.0 - Bugfixes, new assertions, and use `dep`

30 Dec 18:59
Compare
Choose a tag to compare
  • b91bfb9 - Move from Godep to dep for dependency management
  • 9ede17e - Drop old Go versions from tests
  • 8de2544 - Fix HTTP assertions to be consistent with the rest
  • b57b6d1 - Add FileExists and DirExists assertions
  • b3596e9 - Fxinng After(time.Duration) to wait properly
  • cbf22d8 - Support nil arguments to Argument Matchers
  • 42baa3e - Nil check in Implements assertion
  • b3dfaa9 - fail: add test name for logged output
  • 6e494f9 - put closestCall.Arguments to the expected side of the diff
  • 51464da - Consider empty/nil arrays as matching elements
  • 6f306a6 - Reuse aLen and bLen variables
  • 76de30e - Actually fail tests
  • ae87ba6 - Ran go generate
  • 8bd27dd - Compress some newlines
  • bf57a5d - ElementsMatch array/slice assertion ignoring order
  • 0c49dd9 - Replace is with in
  • 9fb9de1 - Make NotSubset actually fail the test on nil subset
  • 8ccf48a - Allow a method call to be optional
  • aa8279e - travis: add go1.9
  • c0f1d44 - indent actual value for better comparison with expected value
  • 249123e - Implement delta comparison for map values
  • 88a414d - generalize Empty assertion
  • 2aa2c17 - Fix unprotected call fields access in MethodCalled()
  • 890a5c3 - Issue #469 fix
  • 05e8a0e - Fix the actuality of InEpsilon
  • 2f1cd6b - time.Duraions are numbers too
  • b1f9894 - Fix InDelta expected nan check message
  • 4b92304 - Fix actual float conversion error message under calcRelativeError
  • f6abca5 - Added assert.PanicsWithValue + tests
  • e964b17 - add MethodCalled to the mock
  • 46b3c82 - Simple validation of Equal/NotEqual assertion arguments
  • cc18973 - Fix gogenerate travis check
  • e179a18 - Travis check go generate has been run
  • 3458981 - Run go vet in travis
  • c7668ea - Fixes #339 - Add assertionf assertions like Errorf and Equalf
  • c33f336 - Fix vet warnings and go generate to update docs
  • 3104bf5 - Use Go 1.7 subtests so suites can properly nest
  • b8c9b4e - Merge pull request #447 from stretchr/issue-442
  • bd79c01 - Fix race condition on mock package's Called
  • 253219d - Merge pull request #396 from medzin/issue-379
  • edd8e19 - Run go generate to syn generated assertions
  • aa10ab5 - Merge pull request #382 from GlenDC/feat-test-subset
  • 78be756 - Fixed HTTP assertions messages formatting and removed wrong test message
  • 3a59a58 - add Subset and NotSubset assertions
  • e68c5c5 - Merge pull request #446 from stretchr/gofmt-in-travis
  • dd57c7b - Check code is formatted in travis
  • eb84487 - Merge pull request #441 from stretchr/revert-commits
  • f712be9 - Revert "add mock.MethodCalled(methodName, args...)"
  • 34687eb - Revert "diffArguments: remove unnecessary range-for (#417)"
  • 2b76a97 - Revert "Added goconvey style assertions to the mock package"
  • b6296e3 - fix(docs): correct Error usage examples
  • d2f3716 - Add msgAndArgs pass forward to InDelta from InDeltaSlice
  • 158f9d0 - Check that there is a directory before trying to access it.
  • 18cfa68 - Added extra unit test for function with mixed variadic arguments.
  • b1f1bcb - fix typo
  • 09f61d7 - assert: fix error reporting when error contains escape sequences
  • 5c861cc - diffArguments: remove unnecessary range-for (#417)
  • bc11a6e - Tighten language by increasing overall consistency in wording in texts and
    argument names: use 'actual' instead of 'received'
  • 115ab90 - Provide argument name args in function signature
  • faf0710 - Added goconvey style assertions to the mock package
  • 97c0e43 - compare bytes with bytes.Equal instead of reflect.DeepEqual
  • 17a0bd5 - add mock.MethodCalled(methodName, args...)
  • 9afdd65 - Check number of provided arguments vs mocked
  • c67cacc - Merge pull request #438 from josephholsten/test-old-go
  • 287336f - travis: rm broken go releases
  • 32d79c5 - travis: check if these platforms are broken
  • 5c9da49 - HTTP code status assertions now fail tests
  • 4d4bfba - Merge pull request #392 from stretchr/add-nil-unequal-check
  • 332ae0e - Add Equal test comparing nil with non-nil
  • 2402e8e - Merge pull request #364 from nmiyake/fixFailOutput
  • 598ab58 - Merge pull request #171 from ANPez/master
  • cd206b0 - Merge pull request #318 from esdrasbeleza/master
  • ae4c58e - Merge pull request #367 from packrat386/rm_numeric_check
  • 6ac1453 - Merge pull request #370 from nmiyake/fixTypos
  • 211175b - Merge pull request #377 from seppestas/typo-fixes
  • 59b4bc5 - Merge pull request #371 from nmiyake/addEqualityDocs
  • 434d5c1 - Fixed minor typo
  • 3928f57 - Add comments for Equal and NotEqual to clarify pointer comparison
  • 13b9dd4 - Fix typos in comments in _codegen/main.go
  • 6835870 - Remove isNumericType check
  • 18a02ba - Merge pull request #365 from atombender/remove_addresses_from_diff
  • cbd71e7 - When diffing with spew, use a format that doesn't include pointer addresses
    (which generate false negatives). This updates go-spew to
    04cdfd42973bb9c8589fd6a731800cf222fde1a9.
  • ddb91ee - Ensure that assert.Fail properly align its output
  • 5e72f93 - Remove timestamp from callback
  • 976c720 - Format generated code
  • 4b9bfb8 - run go/format on generated code
  • 75f4cfe - Merge pull request #331 from ansel1/master
  • 4ccf54a - Clearer messages
  • bf7a93e - Add timestamp
  • fcedfe2 - Add callbacks to run before and after each test
  • 8879a01 - Unlock and relock not needed anymore. Addresses #167.
  • 384cc66 - Merge branch 'master' of https://github.com/stretchr/testify
  • 4a6e516 - Added test to avoid regresions of #167.
  • 547cd8e - Release lock before .WaitUntil, as it may cause a deadlock when testing parallel
    objects. Address #167: Unable to test concurrent objects

version 1.1.4 for gopkg.in

25 Sep 02:39
Compare
Choose a tag to compare
Merge pull request #327 from jveski/issue-155

Clarify assert.Equal failure message given mismatched numeric types