[Tutor] Python&Pytest

Cameron Simpson cs at zip.com.au
Fri Jun 12 07:58:03 CEST 2015


On 11Jun2015 18:55, alan.gauld at btinternet.com <alan.gauld at btinternet.com> wrote:
>On 11/06/15 14:25, Michelle Meiduo Wu wrote:
>>I read some document and found Pytest can be used to write
>> simpler code compared with using unittest in Python.
>
>Yes, but PyTest (and unittest) are for testing units of Python
>code. So they really only apply if your application is written
>in Python.

Though if you like the framework, you could write very thin Python wrappers 
calling something else, and test them. Might be more trouble thatn it is worth 
though.

>And in any case you should really have written
>all the unit tests long before completing your application.

Ah, the S-word :-)

Cheers,
Cameron Simpson <cs at zip.com.au>


More information about the Tutor mailing list