我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

Golang去测试专用目录

I want to test files in all other paths except the static path.

I had checked the information,can pass go test -run ,but I have been try to fail

Below is my project path structure

api/...
common/...
static/...    //except this
...

You can use this command to exclude a specific folder:

 find ./ -type d  ! -path "./static*" ! -path "./.git*"  -exec go test -v "{}" \;

近期文章

  • tyk无法在Windows上构建
  • 如何使用Golang连接ESX服务器
  • 带有密码的Golang UDP远程Shell
  • 调试时卡入stdin(fmt.Scan)的Go程序
  • 从环境文件golang中读取apm环境变量
  • xgo交叉编译不适用于alsa-lib
  • 调试自己的OVS控制器时出现问题(超时问题)
  • 如何使用Ginkgo和Gomega匹配私有结构类型?
  • 来自GoLang中GetDocumentAnalysis的AWS Textract键值对
  • Golang中rsa.EncryptOAEP()的C ++对应解码功能
  • 在asp.net中如何使用fileupload上传视频文件?
  • 使用$ in在mongo中向上插入多个文档而不循环
  • 通过ObjectId时间戳查询最近10分钟的所有文档
  • 使用Go测试HTTP / 2
  • 通过事务运行Go测试
  • 如何将pq.Int64Array转换为字符串?
  • Golang Howto将嵌套结构解组为一片结构
  • zserge / lorca ui.Eval不返回任何值
  • 使用ast包删除未使用的进口商品?
  • Dep确保不执行任何操作只是加载

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华