Files
forego/config_test.go
Võ Anh DuyandDavid Dollar dd6e9899ca Allow local config with .forego (#56)
See #32
gotenv can read simple yaml file so we don't need to use a read yaml
parse.
The value in forego file will be set as default value, if we set flag
or env value, it will override the value in forego file
2016-04-13 13:11:00 -07:00

12 lines
224 B
Go

package main
import "testing"
func TestReadOptionFile(t *testing.T) {
config_file := "./fixtures/options/.forego"
_, err := ReadConfig(config_file)
if err != nil {
t.Fatalf("Could not read config file: %s", err)
}
}