Testing of parameters in tested function

View: New views
1 Messages — Rating Filter:   Alert me  

Testing of parameters in tested function

by cppunit-devel mailing list :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

Hi,

            I adopted CppUnit into our big project – it works smoothly, really thanks. But we have following mental problem: each function should test its parameters if they are valid (those tests must be performed inside of that function). We would like to be sure, that function tests if parameters are valid from CppUnit test cases to be sure, that some developers did not change those tests. It would be also good if such a function asserts during standard run (when not run from test case).

 

            I added such things into my local copy of CppUnit and it seems to work OK. Do you thing that anybody else would be interested in such extension? I am able to contribute it into head branch if answer is possitive. Or is there other procedure to be followed? I choosed direct question, because I have functional request and also its solution.

 

Thank you for answer, Jan Mach.

 


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Cppunit-devel mailing list
Cppunit-devel@...
https://lists.sourceforge.net/lists/listinfo/cppunit-devel
LightInTheBox - Buy quality products at wholesale price!