Skip to content
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

Issue 90 unittest #104

Merged

Conversation

fanhousanbu
Copy link
Collaborator

Which changes (Bug/Feature):

Fixes #90 GitHub action 集成单测

Special notes for reviewers:

1. GitHub action增加单测&覆盖率流程
2. 单测覆盖率由codecov提供,待项目合并后会在codecov申请项目授权以加载徽章
3. 增加httpmock包 

fanhousanbu and others added 7 commits March 1, 2022 22:12
Rename codecov to codecov.yml

Update codecov.yml

Update codecov.yml

wip-github-action

wip-github-action

remove tests under internal package
从internal目录下移除测试项目,因为在此包里的单测运行时会依赖外部环境(model.init()方法导致);

issue 90; 修改go ver为1.17

remove test.yml

make a failed case

Revert "make a failed case"

This reverts commit 9f3a7dd.

t#
@codecov-commenter
Copy link

Codecov Report

❗ No coverage uploaded for pull request base (v1.5.0-feat-app-refactor@0897f1a). Click here to learn what that means.
The diff coverage is n/a.

Impacted file tree graph

@@                    Coverage Diff                     @@
##             v1.5.0-feat-app-refactor    #104   +/-   ##
==========================================================
  Coverage                            ?   4.67%           
==========================================================
  Files                               ?      10           
  Lines                               ?    1454           
  Branches                            ?       0           
==========================================================
  Hits                                ?      68           
  Misses                              ?    1384           
  Partials                            ?       2           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0897f1a...90fe22a. Read the comment docs.

Copy link
Member

@colynn colynn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

很好的一个阶段,赞👍

@sampsonye sampsonye merged commit 5314348 into go-atomci:v1.5.0-feat-app-refactor Mar 13, 2022
@fanhousanbu fanhousanbu deleted the issue-90-unittest branch March 16, 2022 04:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

新增代码 单元测试样例
4 participants