grafana/pkg/plugins/plugins_test.go

21 lines
382 B
Go
Raw Normal View History

2015-02-27 20:45:00 +08:00
package plugins
import (
"path/filepath"
"testing"
2015-11-27 17:04:43 +08:00
"github.com/grafana/grafana/pkg/setting"
2015-02-27 20:45:00 +08:00
. "github.com/smartystreets/goconvey/convey"
)
func TestPluginScans(t *testing.T) {
Convey("When scaning for plugins", t, func() {
2015-11-27 17:04:43 +08:00
setting.StaticRootPath = filepath.Abs("../../public/")
err := Init()
2015-02-27 20:45:00 +08:00
So(err, ShouldBeNil)
2015-02-28 18:38:44 +08:00
So(len(DataSources), ShouldBeGreaterThan, 1)
2015-02-27 20:45:00 +08:00
})
}