grafana/pkg/plugins/plugins_test.go

20 lines
338 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)
2015-02-28 04:38:44 -06:00
So(len(DataSources), ShouldBeGreaterThan, 1)
2015-02-27 06:45:00 -06:00
})
}