-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test: integration test #23
Conversation
LCOV of commit
|
Total Coverage: 92.81% Coverage Report
|
Total Coverage: 92.81% Coverage Report
|
Total Coverage: 92.81% Coverage Report
|
Total Coverage: 92.81% Coverage Report
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
我们现在单元测试已经覆盖函数级别的测试,集成测试应满足不同的上下文(也即不同 curveType, yieldAggregator)下能否正常买卖(buy/sell share),以及安全的迁移和领取 yield。
这样才能让单元测试与集成测试有所区分,集成测试更关注一系列连贯行为之后能否达到预期表现,而单元测试更多关注单一行为的表现。
正在准备这部分的case |
Total Coverage: 92.81% Coverage Report
|
Total Coverage: 91.67% Coverage Report
|
Total Coverage: 92.22% Coverage Report
|
Total Coverage: 89.82% Coverage Report
|
Total Coverage: 89.82% Coverage Report
|
Total Coverage: 92.22% Coverage Report
|
Total Coverage: 89.82% Coverage Report
|
Total Coverage: 92.22% Coverage Report
|
Total Coverage: 92.17% Coverage Report
|
Total Coverage: 92.17% Coverage Report
|
Total Coverage: 89.76% Coverage Report
|
Total Coverage: 92.17% Coverage Report
|
Total Coverage: 96.49% Coverage Report
|
Total Coverage: 96.49% Coverage Report
|
Total Coverage: 96.49% Coverage Report
|
Total Coverage: 96.49% Coverage Report
|
Total Coverage: 96.49% Coverage Report
|
Total Coverage: 96.49% Coverage Report
|
Total Coverage: 91.21% Coverage Report
|
Total Coverage: 91.21% Coverage Report
|
Total Coverage: 91.21% Coverage Report
|
Total Coverage: 91.21% Coverage Report
|
Total Coverage: 91.21% Coverage Report
|
Total Coverage: 91.21% Coverage Report
|
Total Coverage: 91.21% Coverage Report
|
Total Coverage: 91.21% Coverage Report
|
Total Coverage: 91.21% Coverage Report
|
Total Coverage: 91.21% Coverage Report
|
Total Coverage: 97.08% Coverage Report
|
Total Coverage: 97.08% Coverage Report
|
Total Coverage: 96.74% Coverage Report
|
Total Coverage: 96.74% Coverage Report
|
Change Information
添加基础的集成测试
修改 test.yml workflow,使其仅执行单元测试目录下的测试
新增 integration-test, 执行 test/integration 下的集成测试 (时间相对更长)
在集成測試目錄添加了 invariant 類測試
现在可以在测试的 workflow 日志中看到测试的 console.log 结果了
e.g. https://github.com/mest-io/mest-protocol/actions/runs/9127998534/job/25099465845?pr=23