Re: [Cppcms-users] UnitTest
Brought to you by:
artyom-beilis
|
From: Klaus W. <kjw...@ya...> - 2013-08-30 10:30:54
|
Hi Sab, I too found it useful to test against the application directly and took a leaf out of Artyom's tests, namely tc_test.cpp and the related dummy_api.h. I attached the cpp file. Feel free to start from there and to deliver feedback. Cheers! K On 05/14/2013 02:59 PM, Sab wrote: > Hi Artyom, > > do you see any serious difficulties with introducing a test mode in CppCMS > that would allow users to fill an http_request object "manually" in a test > framework and pass it to a cppcms application class, simulating a request from > a client? The application class could then fill the http_response object and > pass it back to the test framework for result check. This would be a great way > to test CppCMS application classes. Do you think, such a "test pad" could be > integrated in a future release? > > Sab > > > > > ------------------------------------------------------------------------------ > AlienVault Unified Security Management (USM) platform delivers complete > security visibility with the essential security capabilities. Easily and > efficiently configure, manage, and operate all of your security controls > from a single console and one unified framework. Download a free trial. > http://p.sf.net/sfu/alienvault_d2d > |