-
Hi, Currently I'm doing end to end test with httpexpect. There are currently 100+ sequential url calls in the test. The problem is, when test failed, it just shows line number in the source code. If I can give name to test calls (in this case, single url request call), and httpexpect would print the name when failed or passed along side with source code line number, it would be better. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi, There is no way to do it currently. It would be a nice addition probably. We could add But maybe you can use Go subtests instead? Are there any problems with this approach? |
Beta Was this translation helpful? Give feedback.
-
It's now possible. You can pass Also, when you're using Also you can set |
Beta Was this translation helpful? Give feedback.
It's now possible. You can pass
Config.TestName
as described here: https://github.com/gavv/httpexpect#custom-configAlso, when you're using
httpexpect.Default()
,TestName
will be set automatically.Also you can set
Request.WithName()
to specify request name.