mirror of
https://github.com/stretchr/testify.git
synced 2025-05-31 11:42:44 +00:00
enhanced docs
This commit is contained in:
parent
4e77cd5872
commit
de0e11f12f
15
README.md
15
README.md
@ -3,20 +3,23 @@ Testify - Thou Shalt Write Tests
|
|||||||
|
|
||||||
Go code (golang) set of packages that provide many tools for testifying that your code will behave as you intend.
|
Go code (golang) set of packages that provide many tools for testifying that your code will behave as you intend.
|
||||||
|
|
||||||
* Easy assertions
|
Features include:
|
||||||
* Mocking
|
|
||||||
* HTTP response trapping
|
* [Easy assertions](#assert-package)
|
||||||
|
* [Mocking](#mock-package)
|
||||||
|
* [HTTP response trapping](#http-package)
|
||||||
|
|
||||||
Get started:
|
Get started:
|
||||||
|
|
||||||
|
* Install testify with [one line of code](#installation)
|
||||||
* Read the API Documentation http://go.pkgdoc.org/github.com/stretchrcom/testify
|
* Read the API Documentation http://go.pkgdoc.org/github.com/stretchrcom/testify
|
||||||
* For an introduction to writing test code in Go, see http://golang.org/doc/code.html#Testing
|
* For an introduction to writing test code in Go, see http://golang.org/doc/code.html#Testing
|
||||||
* Install testify with [one line of code](#installation)
|
* A little about [Test-Driven Development (TDD)](http://en.wikipedia.org/wiki/Test-driven_development)
|
||||||
|
|
||||||
`assert` package
|
`assert` package
|
||||||
----------------
|
----------------
|
||||||
|
|
||||||
The `assert` package provides some helpful methods that allow you to write better test code in Go. Check out the [API documentation for the assert package](http://go.pkgdoc.org/github.com/stretchrcom/testify/assert).
|
The `assert` package provides some helpful methods that allow you to write better test code in Go. Check out the [API documentation for the `assert` package](http://go.pkgdoc.org/github.com/stretchrcom/testify/assert).
|
||||||
|
|
||||||
* Prints friendly, easy to read failure descriptions
|
* Prints friendly, easy to read failure descriptions
|
||||||
* Allows for very readable code
|
* Allows for very readable code
|
||||||
@ -52,7 +55,7 @@ See it in action:
|
|||||||
`http` package
|
`http` package
|
||||||
--------------
|
--------------
|
||||||
|
|
||||||
The `http` package contains test objects useful for testing code that relies on the `net/http` package. Check out the [API documentation for the http package](http://go.pkgdoc.org/github.com/stretchrcom/testify/http).
|
The `http` package contains test objects useful for testing code that relies on the `net/http` package. Check out the [API documentation for the `http` package](http://go.pkgdoc.org/github.com/stretchrcom/testify/http).
|
||||||
|
|
||||||
`mock` package
|
`mock` package
|
||||||
--------------
|
--------------
|
||||||
|
Loading…
x
Reference in New Issue
Block a user