Great! Thanks Chamila for the detailed explanation!
On Thu, Oct 23, 2014 at 3:36 PM, Chamila De Alwis wrote:
> Hi Imesh,
>
> Python has two standard libraries for unit testing called unittest and
> doctest. Doctest is a simple library which allows expressing the standard
> use cases for each met
Hi Imesh,
Python has two standard libraries for unit testing called unittest and
doctest. Doctest is a simple library which allows expressing the standard
use cases for each method in their documentation. It is not as extensive to
be used for a unit testing framework alone. 'unittest' is good but
+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 wrote:
>
> +1 for pytest. I guess Nose also derived from the pytest.
>
> Pytest has good testing fixture mec
+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,
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 an