grafana/pkg/plugins/plugins_test.go

20 lines
330 B
Go
Raw Normal View History

2015-02-27 06:45:00 -06:00
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)
2015-02-27 06:45:00 -06:00
So(err, ShouldBeNil)
So(len(DataSources), ShouldEqual, 1)
2015-02-27 06:45:00 -06:00
})
}