Xcribe.Document.document
You're seeing just the macro
document
, go back to Xcribe.Document module for more information.
Document a request by a given Plug.Conn
.
Each connection sent to documenting in your tests is parsed. Is expected that
connection has been passed through the app Endpoint
as a finished request.
The parser will extract all needed info from Conn
and uses app Router
for additional information about the request.
The attribute description
may be given at document
macro call with the
option :as
:
test "test name", %{conn: conn} do
...
document(conn, as: "description here")
...
end
If no description is given the current test description will be used.