Changes between Version 5 and Version 6 of DeveloperGuidelines/Testing/EdenTest/WriteTestcase


Ignore:
Timestamp:
06/08/14 06:16:39 (7 years ago)
Author:
Arnav Sharma
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DeveloperGuidelines/Testing/EdenTest/WriteTestcase

    v5 v6  
    1717Before writing your first testcase, please make sure that you have !EdenTest set up, you understand the directory structure and the know-how of how to run !EdenTest and see its results. If not, go through [http://eden.sahanafoundation.org/wiki/DeveloperGuidelines/EdenTest EdenTest].
    1818
    19 As !EdenTest is built on the principle of '''ATDD''' which is a practice in which the acceptance criteria is decided, with examples, and then distilled into a set of concrete acceptance tests before development begins. To say it simply, write the tests which covers your functionality before writing the code for the functionality. Then, write the code for that functionality so that it passes the tests. The '''T''' aspect of '''F.I.R.S.T'''.
     19As !EdenTest is built to make it easy to do '''ATDD''' which is a practice in which the acceptance criteria is decided, with examples, and then distilled into a set of concrete acceptance tests before development begins. To say it simply,
     20ATDD is like:
    2021
     221. Define (or refactor) acceptance test(s) from user stories
     232. Automate the acceptance test
     243. Run the acceptance test
     254. If fail: refactor code, then repeat 3. If pass: development stops, back to 1.
    2126=== What we have to do? ===
    2227