X Tutup
The Wayback Machine - https://web.archive.org/web/20201207030739/https://github.com/codingapi/tx-lcn/issues/503
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

6.0 单元测试编写 任务认领 #503

Open
1991wangliang opened this issue Jul 2, 2020 · 3 comments
Open

6.0 单元测试编写 任务认领 #503

1991wangliang opened this issue Jul 2, 2020 · 3 comments
Labels

Comments

@1991wangliang
Copy link
Contributor

@1991wangliang 1991wangliang commented Jul 2, 2020

目前框架的测试是依托demo的方式做的测试,但是这样的测试对环境的依赖性比较大。需要编写对框架层面的单元测试。以确保业务的准确性。

1991wangliang added a commit that referenced this issue Jul 2, 2020
@1991wangliang
Copy link
Contributor Author

@1991wangliang 1991wangliang commented Jul 2, 2020

单元测试 不需要做整体的bean注入,单点对个业务的测试即可。对其他可以做mock处理。详细可以参考提交的test代码。
mvn clean install -DskipTests=false -P travis 执行单元测试的maven。
https://codecov.io/gh/codingapi/tx-lcn 线上覆盖率代码,本地在target/site/下

@qiruipeng
Copy link

@qiruipeng qiruipeng commented Jul 14, 2020

这个是对未覆盖的加单元测试吗?

@1991wangliang
Copy link
Contributor Author

@1991wangliang 1991wangliang commented Jul 20, 2020

是的 未覆盖的单元测试

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.
X Tutup