func SetupTestConfig() {
	flag.Parse()
	viper.SetEnvPrefix("OPENCHAIN")
	viper.AutomaticEnv()
	replacer := strings.NewReplacer(".", "_")
	viper.SetEnvKeyReplacer(replacer)
	viper.SetConfigName("openchain")  
	viper.AddConfigPath("./")         
	viper.AddConfigPath("./../../")   
	err := viper.ReadInConfig()       
	if err != nil {                   
		panic(fmt.Errorf("Fatal error config file: %s \n", err))
	}
	SetupTestLogging()
	var numProcsDesired = viper.GetInt("peer.gomaxprocs")
	vmLogger.Debug("setting Number of procs to %d, was %d\n", numProcsDesired, runtime.GOMAXPROCS(2))
}
SetupTestConfig setup the config during test execution
package container
import (
	"flag"
	"fmt"
	"runtime"
	"strings"
	"github.com/op/go-logging"
	"github.com/spf13/viper"
)
type Config struct {
}
func init() {
}
func SetupTestLogging() {
	level, err := logging.LogLevel(viper.GetString("peer.logging.level"))
	if err == nil {
		logging.SetLevel(level, "main")
		logging.SetLevel(level, "server")
		logging.SetLevel(level, "peer")
	} else {
		vmLogger.Warning("Log level not recognized '%s', defaulting to %s: %s", viper.GetString("peer.logging.level"), logging.ERROR, err)
		logging.SetLevel(logging.ERROR, "main")
		logging.SetLevel(logging.ERROR, "server")
		logging.SetLevel(logging.ERROR, "peer")
	}
}