plugins_test.go 432 B

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