From 3f544398b9cb4c28de259607a80617f415f86b25 Mon Sep 17 00:00:00 2001 From: "Gerasimos (Makis) Maropoulos" Date: Sat, 22 Oct 2022 18:11:48 +0300 Subject: [PATCH] HISTORY.md: add entry for third party packages support on httptest --- HISTORY.md | 2 ++ _examples/README.md | 4 +++- httptest/httptest.go | 3 ++- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/HISTORY.md b/HISTORY.md index daa813f7..f62432c0 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -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. diff --git a/_examples/README.md b/_examples/README.md index 94a98c04..22afea21 100644 --- a/_examples/README.md +++ b/_examples/README.md @@ -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) diff --git a/httptest/httptest.go b/httptest/httptest.go index df880b92..1383cce7 100644 --- a/httptest/httptest.go +++ b/httptest/httptest.go @@ -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 {