[wsf-c-dev] Code Coverage

Samisa Abeysinghe samisa at wso2.com
Mon Aug 20 18:06:48 PDT 2007


Sanjiva Weerawarana wrote:
> Samisa Abeysinghe wrote:
>>
>> The solution for not representing coverage for server side is running 
>> the server scripts on command line. However, in order to do that, we 
>> need to implement the local transport at Axis2/C level. It will take 
>> us some time to implement the local transport and implement the 
>> standalone command line mode for PHP service scripts.
>
> Why can't we run it under say thhtpd and use wsclient to drive the tests?
Well, first of all, we have solved the server side problem by making the 
PHP service scripts to work without the local transport on command line. 
With server side included, we have just about 50% coverage. At the 
moment, Evanthika is working on coming up with more test cases to 
improve the coverage.

Second, why we cannot capture the server side execution with httpd is 
because, in my understanding, gcov - the tool that we are using, need 
the process to terminate to trigger capturing. However, 'httpd -k stop' 
does not yield the required signal to gcov. We used the debug mode of 
httpd as well, and that did not work either. I also googled to see if we 
can use gcov to capture coverage for httpd modules, and found no leads 
on that.

Thanks,
Samisa...


-- 
Samisa Abeysinghe : WSO2 WSF/C
"http://wso2.org/projects/wsf/c?WSO2 Web Services Framework/C - Open source C library for providing and consuming Web services"




More information about the Wsf-c-dev mailing list