marpaia / chef-golang

Go library to interact with the Chef server API
Other
77 stars 31 forks source link

go test -short shouldn't require support files, services #32

Open josephholsten opened 10 years ago

josephholsten commented 10 years ago

I'd like go test -short to avoid any tests that require reading files or talking to goiardi. Looks like testing.Short() and Skip() should handle this sort of thing for us: http://golang.org/pkg/testing/

Once we've got https://github.com/ctdk/goiardi/issues/17, it would be awesome to stop having to run support scripts to run the tests.

spheromak commented 10 years ago

In addition most everything for that is requiring a chef-server can be handled by httptest. I view the goiardi stuff as a stop-gap on the way to getting idiomatic go http testing in place.