Re: [Cppcms-users] UnitTest
Brought to you by:
artyom-beilis
|
From: Artyom B. <art...@ya...> - 2013-04-12 12:09:05
|
Unfortunately there is no such a feature you require. On the other hand using internal HTTP web server would allow you to use any HTTP client (libcurl from C++ for example) or any other language. For example significant part CppCMS unit tests are written in Python using urllib (IIRC). Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ >________________________________ > From: Sab <rim...@gm...> >To: cpp...@li... >Sent: Friday, April 12, 2013 12:31 PM >Subject: [Cppcms-users] UnitTest > > >Hi Artyom, > >I would like to create a UnitTest for my REST-WebHandler classes. Thus, I >would like to separately test these classes, without a running webserver and >back engine. So I would like to simulate an incoming CppCMS request(), somehow >fill header and body with simulated info, pass it to my processing function >and then read the content of the response() without trying to send it back to >the server to check if the result is as expected. > >Any ideas, where I could start? > >Sab > > >------------------------------------------------------------------------------ >Precog is a next-generation analytics platform capable of advanced >analytics on semi-structured data. The platform includes APIs for building >apps and a phenomenal toolset for data science. Developers can use >our toolset for easy data analysis & visualization. Get a free account! >http://www2.precog.com/precogplatform/slashdotnewsletter >_______________________________________________ >Cppcms-users mailing list >Cpp...@li... >https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > |