Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

apitest-plantuml

GoDoc Build Status

Formats the results of an apitest run as plant uml markup.

Installation

go get -u github.com/steinfletcher/apitest-plantuml

Example

apitest.New("search user").
    Handler(myHandler).
	Report(plantuml.NewFormatter(myWriter)).
	Mocks(getPreferencesMock, getUserMock).
	Post("/user/search").
	Body(`{"name": "jon"}`).
	Expect(t).
	Status(http.StatusOK).
	Header("Content-Type", "application/json").
	Body(`{"name": "jon", "is_contactable": true}`).
	End()

Diagram

SVG version