plugins_test.go 338 B

12345678910111213141516171819
  1. package plugins
  2. import (
  3. "path/filepath"
  4. "testing"
  5. . "github.com/smartystreets/goconvey/convey"
  6. )
  7. func TestPluginScans(t *testing.T) {
  8. Convey("When scaning for plugins", t, func() {
  9. path, _ := filepath.Abs("../../src/app/plugins")
  10. err := scan(path)
  11. So(err, ShouldBeNil)
  12. So(len(DataSources), ShouldBeGreaterThan, 1)
  13. })
  14. }