We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3426da5 commit db01bbeCopy full SHA for db01bbe
xbarapp.com/main_test.go
@@ -18,6 +18,13 @@ func TestPluginMetadata(t *testing.T) {
18
is := is.New(t)
19
20
pluginMetadataPath := filepath.Join(docsFolder, "/plugins/Dev/Tutorial/cycle_text_and_detail.sh.json")
21
+
22
+ // if the file doesn't exist - skip the test
23
+ if _, err := os.Stat(pluginMetadataPath); os.IsNotExist(err) {
24
+ t.Skipf("file %s doesn't exist", pluginMetadataPath)
25
+ return
26
+ }
27
28
p := loadPluginMetadata(is, pluginMetadataPath)
29
is.True(p.Version != "") // version doesn't match
30
is.True(p.LastUpdated != "")
0 commit comments