Skip to content

jslang/testaservice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Testaservice - Convenient HTTP Service assertions based on testify library

This test library provides an HTTP service useful for use in testing allowing full exercise of the HTTP transport in unit tests.

Example

func TestMyHTTPClient(t *testing.T){
    t.Run("some sort of client test", func(t *testing.T){
        ts := NewTestService(t)
        // Do some client things

        var request ClientRequest
        ts.AssertCalled()
        ts.AssertReceivedAs(&request)
        // etc
    })
}

About

Test HTTP Service based on testify library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages