grafana/pkg/plugins/plugins_test.go
2015-02-27 13:45:00 +01:00

20 lines
323 B
Go

package plugins
import (
"path/filepath"
"testing"
. "github.com/smartystreets/goconvey/convey"
)
func TestPluginScans(t *testing.T) {
Convey("When scaning for plugins", t, func() {
path, _ := filepath.Abs("../../src/app/plugins")
err := Scan(path)
So(err, ShouldBeNil)
So(len(List), ShouldEqual, 1)
})
}