HISTORY.md: add entry for third party packages support on httptest

This commit is contained in:
Gerasimos (Makis) Maropoulos 2022-10-22 18:11:48 +03:00
parent 7761069873
commit 3f544398b9
No known key found for this signature in database
GPG Key ID: 403EEB7885C79503
3 changed files with 7 additions and 2 deletions

View File

@ -28,6 +28,8 @@ The codebase for Dependency Injection, Internationalization and localization and
## Fixes and Improvements
- [PR #1992](https://github.com/kataras/iris/pull/1992): Added support for third party packages on [httptest](https://github.com/kataras/iris/tree/master/httptest). An example using 3rd-party module named [Ginkgo](github.com/onsi/ginkgo) can be found [here](https://github.com/kataras/iris/blob/master/_examples/testing/ginkgotest).
- Add `Context.Render` method for compatibility.
- Support of embedded [locale files](https://github.com/kataras/iris/blob/master/_examples/i18n/template-embedded/main.go) using standard `embed.FS` with the new `LoadFS` function.

View File

@ -107,7 +107,9 @@
* API Documentation
* [Yaag](apidoc/yaag/main.go)
* [Swagger](https://github.com/iris-contrib/swagger/tree/master/_examples/basic)
* [Testing](testing/httptest/main_test.go)
* Testing
* [Testing with httptest](testing/httptest/main_test.go)
* [Testing with ginkgo](testing/ginkgotest)
* [Recovery](recover/main.go)
* [Panic and custom Error Handler with Compression](recover/panic-and-custom-error-handler-with-compression/main.go)
* [Profiling](pprof/main.go)

View File

@ -104,7 +104,8 @@ func DefaultConfiguration() *Configuration {
//
// httptest.New(t, app, httptest.URL(...), httptest.Debug(true), httptest.LogLevel("debug"), httptest.Strict(true))
//
// Example at: https://github.com/kataras/iris/tree/master/_examples/testing/httptest.
// Examples at: https://github.com/kataras/iris/tree/master/_examples/testing/httptest and
// https://github.com/kataras/iris/tree/master/_examples/testing/ginkgotest.
func New(t IrisTesty, app *iris.Application, setters ...OptionSetter) *httpexpect.Expect {
conf := DefaultConfiguration()
for _, setter := range setters {