User Tools

Site Tools


unit_test_case_utc

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
unit_test_case_utc [2018/05/07 03:28]
Mushfiqul Islam [Develop UTC]
unit_test_case_utc [2018/05/08 08:28] (current)
Mushfiqul Islam [Generic Guideline:]
Line 64: Line 64:
   - All testcases should be independent(able to run single and should not affect next/other testcases)   - All testcases should be independent(able to run single and should not affect next/other testcases)
   - Unit TCs should be written to verify API signature and response in basic case, not API behavior in a specific scenario.   - Unit TCs should be written to verify API signature and response in basic case, not API behavior in a specific scenario.
 +  - All precondition required for a TCs should reside in SetUp() function
 +  - To make each Testcase independent,​ required cleanups should be done inside TearDown()
 +  - If a TC is desired to use the defined SetUp() & TearDown() functions, it should start with "​TEST_F",​ otherwise, "​TEST"​ should be used.
  
unit_test_case_utc.txt ยท Last modified: 2018/05/08 08:28 by Mushfiqul Islam