【发布时间】:2019-11-12 13:28:08
【问题描述】:
有没有办法只执行那些受 Go 最近变化影响的测试?我们有一个大型单元测试套件,现在它开始需要一段时间才能完成。我们认为我们只运行那些受第一轮代码更改影响的测试。
Python 有这样的东西:https://github.com/tarpas/pytest-testmon
有没有办法在 Go 中做到这一点?
【问题讨论】:
-
仅缓存包测试:来自测试文档:
go test caches successful package test results to avoid unnecessary repeated running of test
标签: unit-testing go