Embedded highlighting in Markdown fenced code blocks tagged wurl
Language configuration: auto-close quotes and brackets, line comments with #
Wurl Language
Wurl is a declarative HTTP testing language. Tests are grouped and run concurrently; tests within a group run sequentially.
Basic structure
# This is a comment
group auth
test "returns 200"
GET /api/me
assert status 200
assert body.user present
assert body.user.name equals "alice"
end
test "rejects unauthenticated"
GET /api/me
assert not status 200
assert status 401
end
end
group posts
test "creates a post"
POST /api/posts
body.title = "Hello World"
body.published := true
assert status 201
assert body.id present
assert body.title equals "Hello World"
end
end