chef-golang icon indicating copy to clipboard operation
chef-golang copied to clipboard

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

Open josephholsten opened this issue 10 years ago • 1 comments

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.

josephholsten avatar May 20 '14 18:05 josephholsten

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.

spheromak avatar May 20 '14 19:05 spheromak