diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..b18d839 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,9 @@ +language: go +go: + - 1.4.3 + - 1.5.4 + - release + - tip + +script: + - go test -v ./... diff --git a/mods_test.go b/mods_test.go new file mode 100644 index 0000000..0caa7b1 --- /dev/null +++ b/mods_test.go @@ -0,0 +1,20 @@ +package main + +import ( + "fmt" + "testing" +) + +var ( + modDir = "/home/mitch/bin/factorio/mods" +) + +func TestListInstalledMods(t *testing.T) { + result, err := listInstalledMods(modDir) + if err != nil { + t.Errorf("Error listing mods test: %s", err) + } + if len(result) < 1 { + fmt.Println("No Mods installed") + } +}