Skip to content
🌱 Formats the results of an apitest run as PlantUML markup
Branch: master
Clone or download
Latest commit d8905bc Feb 27, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples create directory for test files Feb 27, 2019
testdata Add metadata to output Feb 27, 2019
.gitignore first commit Feb 19, 2019
.travis.yml add travis config Feb 27, 2019
README.md Update README.md Feb 27, 2019
go.mod remove testify Feb 27, 2019
go.sum remove testify Feb 27, 2019
plantuml.go Add metadata to output Feb 27, 2019
plantuml_test.go remove testify Feb 27, 2019

README.md

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

You can’t perform that action at this time.