Karthik,

If interested in regression / integration testing (trafficserver+plugin) using 
TSQA  you could take a look at cachekey plugin regression tests:
  
https://github.com/apache/trafficserver/blob/master/plugins/experimental/cachekey/tests/test_cachekey.py
 

TSQA link: 
  https://github.com/apache/trafficserver/tree/master/ci/tsqa

For unit tests Google Test seems like a reasonable choice to me.

Cheers,
—Gancho


> On Apr 22, 2016, at 9:30 AM, Karthik Sivaraman <karthiksivara...@outlook.com> 
> wrote:
> 
> Thanks all. Will follow up on these links
> 
> Karthik
> 
> ________________________________________
> From: Brian Geffon <bri...@apache.org>
> Sent: Friday, April 22, 2016 8:46 AM
> To: dev@trafficserver.apache.org
> Subject: Re: Unit testing for plugin
> 
> Take a look at the open pull requests, there are c++ API mocks that are
> hopefully going to land soon too.
> 
> Brian
> 
> On Friday, April 22, 2016, James Peach <jamespe...@me.com> wrote:
> 
>> 
>>> On Apr 22, 2016, at 7:01 AM, Karthik Sivaraman <
>> karthiksivara...@outlook.com <javascript:;>> wrote:
>>> 
>>> Hi
>>> 
>>> 
>>> We are planning to maintain a plug-in that does third party feed based
>> URL filtering. Are there any recommendations for unit test/regression test
>> frameworks? What does trafficserver use for its unit/regression tests?
>> 
>> Internally, Traffic Server uses a very simple regression test framework,
>> some automake test tools and some integration tests. There’s nothing for
>> external plugins to use for testing, so you should use whatever works for
>> you. The framework that Jason pointed out looks pretty interesting. For C++
>> testing, Google Test and Google Mock are also good choices.
>> 
>> J

Reply via email to