在端点 REST 的 GoConvey 测试期间跳过某些包含静态内容的文件夹 API

Skip certain folders containing static content during GoConvey testing of endpoint REST API

我有一个 public 文件夹来提供静态资源。我使用 Convey 编写了测试以将静态内容保存在此文件夹中。

由于在 public 文件夹中创建了新文件,它陷入了一个永无止境的循环。

integration.go:120: File system state modified, publishing current folders... 1452848214 1452848215

如何跳过这个文件夹?我尝试将 .goconvey 文件添加到带有 ignore 的文件夹中,但它不起作用。

有什么建议,如何跳过观看那个文件夹?

GoConvey 中有一个标志可以帮助跳过这些文件夹。

goconvey -excludedDirs="public"

https://github.com/smartystreets/goconvey/blob/master/goconvey.go#L44

来源:https://github.com/smartystreets/goconvey/issues/383