+1 A great thought Chamila, could you please provide a list of available python test libraries and reasons for selecting pytest?
Thanks On Tue, Oct 21, 2014 at 12:47 PM, Gayan Gunarathne <[email protected]> wrote: > > +1 for pytest. I guess Nose also derived from the pytest. > > Pytest has good testing fixture mechanism which we can use to make our > unit test fixture. > > > [1] http://pytest.org/latest/xunit_setup.html#xunitsetup > [2] http://pytest.org/latest/fixture.html > > Thanks, > Gayan > > On Mon, Oct 20, 2014 at 3:55 PM, Chamila De Alwis <[email protected]> > wrote: > >> Hi, >> >> I started writing unit tests for the Python cartridge agent with the >> intention of keeping code aligned to the requirements that can change in >> the Java cartridge agent. >> >> I started with the Py.Test module to write and run unit tests. Py.Test is >> one of the most used testing libraries in Python and because of the wide >> spread use, a lot of handy tools are packed along with it, like test >> collection and reporting. There is also another library called Nose, but >> there seems to be a lot of online resources for Py.Test. >> >> I expect to bring up the code coverage level up to at least 60% with unit >> tests alone. >> >> Any inputs, suggestions? :) I think we can use Py.Test for other Python >> code in the Stratos project too. >> >> Regards, >> Chamila de Alwis >> Software Engineer | WSO2 | +94772207163 >> Blog: code.chamiladealwis.com >> >> >> > > > -- > > Gayan Gunarathne > Technical Lead > WSO2 Inc. (http://wso2.com) > email : [email protected] | mobile : +94 766819985 > > -- Imesh Gunaratne Technical Lead, WSO2 Committer & PMC Member, Apache Stratos
