From 14a00a3ae462b88b4ea58791c67111dc7b5bfe80 Mon Sep 17 00:00:00 2001 From: Victor Gaydov Date: Fri, 10 Mar 2023 13:54:56 +0400 Subject: [PATCH] Document colors support --- .spelling | 1 + README.md | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/.spelling b/.spelling index 3867e2637..da361dcc0 100644 --- a/.spelling +++ b/.spelling @@ -1,5 +1,6 @@ auth chainable +color config datetime dialer diff --git a/README.md b/README.md index bb71cab3a..5a6243624 100644 --- a/README.md +++ b/README.md @@ -48,6 +48,7 @@ Workflow: * Failures are reported using [`testify`](https://github.com/stretchr/testify/) (`assert` or `require` package) or standard `testing` package. * JSON values are pretty-printed using `encoding/json`, Go values are pretty-printed using [`litter`](https://github.com/sanity-io/litter). * Dumping requests and responses in various formats, using [`httputil`](https://golang.org/pkg/net/http/httputil/), [`http2curl`](https://github.com/moul/http2curl), or simple compact logger. +* Color support using [`fatih/color`](github.com/fatih/color). ##### Tuning @@ -799,6 +800,9 @@ e := httpexpect.WithConfig(httpexpect.Config{ Formatter: &httpexpect.DefaultFormatter{ DisablePaths: true, DisableDiffs: true, + FloatFormat: httpexpect.FloatFormatScientific, + ColorMode: httpexpect.ColorModeNever, + LineWidth: 80, }, })