[BangPypers] framework to write functional test cases

Noufal Ibrahim KV noufal at nibrahim.net.in
Wed Jun 1 11:21:38 EDT 2016


On Wed, Jun 01 2016, anu sree wrote:

> Hi,
>
> I am looking for a framework which helps to write functional test
> cases.  Right now i am using unittest framework to do that, but that
> is ugly.

I consider py.test as one of Python's "killer applications". I've used
it since 2010 or so for almost all my non trivial python projects.

I've even recently started using it to test my C libraries. It's got a
compatibility wrapper to run unittest tests so you can start using it
without changing any of your existing tests. I could go on and on but
it'll just be fanboyism.

> How you guys are writing functional test cases.

Often, for servers, I use subprocess to launch my application as a
completely separate process and then poke it from the outside. 

> I also want to do stress test by sending thousands of concurrent
> requests (run functional test cases in different threads).

Are these http requests? I'm not sure py.test and related infrastructure
is the best to do raw performance tests. Something like ab, siege or
boom might be better.


[...]


-- 
Cordially,
Noufal
http://nibrahim.net.in


More information about the BangPypers mailing list