+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 <chami...@wso2.com> 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 : gay...@wso2.com | mobile : +94 766819985