We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1f3f72a commit d579e54Copy full SHA for d579e54
ytest/README.md
@@ -136,8 +136,22 @@ match { // assert resp.body.id == id
136
137
## host
138
139
-TODO
+```go
140
+host <host> <real>
141
+```
142
+
143
+The Host directive allows you to use an abstract domain name (which does not necessarily exist) to represent a service. For examples:
144
145
146
+host "https://foo.com", "http://127.0.0.1:8080"
147
148
149
+The host directive makes it easy for you to use the same test code between your test environment and production environment:
150
151
152
+host "https://foo.com", ${FOO_HOST}
153
+// Let env FOO_HOST point to the test environment or production environment
154
155
156
## auth
157
0 commit comments