Link to home
Start Free TrialLog in
Avatar of ukapu2005
ukapu2005

asked on

How to write Test Cases for C Language Functions

Can anyone please let me know How to write Test Cases for C Language Functions.
Are there any good websites which can provide good info on this.

Thanks
Avatar of mullinsbc
mullinsbc

ASKER CERTIFIED SOLUTION
Avatar of Suhas .
Suhas .
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Are you looking for unit level test case?
If so you may need unit test frame work. Variety of frame works available for C language
Cunit ,CuTest ,SimplecTest etc:
I suggest this is the best way.
Additionally these points may help you when writing Test cases for C.
-      Since C is a procedural level programming language, there is verity of functions available.
Testing is depends on the way you are testing and the requirement of your test.
For ex:
If you test a few branches up from the leaves that makes you component testing
-      Depends on your branch functions , you may even lead to system testing once you have stated to perform unit testing
Please feel free to post me back for further information.