You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by wa...@apache.org on 2018/04/25 05:59:21 UTC
[incubator-dubbo.wiki] branch master updated: Created Test coverage
guide (markdown)
This is an automated email from the ASF dual-hosted git repository.
wangxin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-dubbo.wiki.git
The following commit(s) were added to refs/heads/master by this push:
new 5215c7a Created Test coverage guide (markdown)
5215c7a is described below
commit 5215c7a5781ccb00d427e8a23371c1356943dac7
Author: Xin Wang <lo...@hotmail.com>
AuthorDate: Wed Apr 25 13:59:19 2018 +0800
Created Test coverage guide (markdown)
---
Test-coverage-guide.md | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/Test-coverage-guide.md b/Test-coverage-guide.md
new file mode 100644
index 0000000..abdeaef
--- /dev/null
+++ b/Test-coverage-guide.md
@@ -0,0 +1,14 @@
+### 1.The benefits of unit testing
+ * Unit test code can help everyone to go into details and understand the function of the code.
+ * We can find bugs by test case, and then enhance the robustness of the code.
+ * Test case code is also the demo usage of the core code.
+### 2.Some design principle of unit test case
+ * Steps, fine-grained and combination conditions should be well designed.
+ * Attention to boundary condition test
+ * Test code should also be designed without writing useless code.
+ * When you find a `method` that is hard to write unit test, if you can be sure the `method` is "smelly code", then refactor it with the committer.
+ * The mock framework in dubbo is: [jmockit](http://jmockit.github.io/).
+ * TDD(optional):When you start a new issue, you can try to write test case first
+### 3.The specified value of the test coverage
+ * In the stage, the test coverage specified value of delta changed codes is :>=60%
+ * We can see the coverage report in this page: https://codecov.io/gh/apache/incubator-dubbo
\ No newline at end of file
--
To stop receiving notification emails like this one, please contact
wangxin@apache.org.