grafana/pkg/plugins/plugins_test.go

20 lines
341 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() {
2015-03-29 06:33:34 -05:00
path, _ := filepath.Abs("../../public/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
})
}