package cmd import ( "testing" "github.com/spf13/viper" ) func TestInitConfig(t *testing.T) { viper.Set("deployment", "testing") viper.Set("image_dir", "/tmp") viper.Set("webserver_port", "8080") initConfig() }