pkg/skel: add rudimentary unit tests

This is an attempt to testing the PluginMain() function of the skel pkg.
We should be able to do better by using a mockable interface for the
plugins, but this is a start.
This commit is contained in:
Stefan Junker
2016-03-18 22:28:14 +01:00
parent ca978caee7
commit 8cc424c5aa
2 changed files with 74 additions and 0 deletions

13
skel/skel_suite_test.go Normal file
View File

@ -0,0 +1,13 @@
package skel
import (
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
"testing"
)
func TestSkel(t *testing.T) {
RegisterFailHandler(Fail)
RunSpecs(t, "Skel Suite")
}