Skip to content

🌱 Formats the results of an apitest run as PlantUML markup

Notifications You must be signed in to change notification settings

steinfletcher/apitest-plantuml

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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