plugins_test.go 382 B

1234567891011121314151617181920
  1. package plugins
  2. import (
  3. "path/filepath"
  4. "testing"
  5. "github.com/grafana/grafana/pkg/setting"
  6. . "github.com/smartystreets/goconvey/convey"
  7. )
  8. func TestPluginScans(t *testing.T) {
  9. Convey("When scaning for plugins", t, func() {
  10. setting.StaticRootPath = filepath.Abs("../../public/")
  11. err := Init()
  12. So(err, ShouldBeNil)
  13. So(len(DataSources), ShouldBeGreaterThan, 1)
  14. })
  15. }