# How to do unit testing

**URL:** https://discuss.tryton.org/t/how-to-do-unit-testing/1699
**Category:** Developer
**Tags:** project
**Created:** [August 29, 2019, 9:41am UTC](https://discuss.tryton.org/t/how-to-do-unit-testing/1699 "2019-08-29T09:41:49Z")
**Posts on this page:** 1
**Showing post:** 9

<div class="post-metadata">

### Author: ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)
#### Post date: [August 30, 2019, 6:19am UTC](https://discuss.tryton.org/t/how-to-do-unit-testing/1699/9 "2019-08-30T06:19:50Z")

</div>

> [@geeta](#):
>
> how we can see that which line is skipped or not executed

In [issue7685](https://bugs.tryton.org/issue7685), you can see a proposal to include coverage reporting.  
You can replace `python setup.py test` by `python -m trytond.tests.run-tests -m <module_name>`.

> [@geeta](#):
>
> what is the role of doctest

The doctest are scenario which uses proteus to mimic the behavior of the client. So it is higher level of testing. It is mainly used to test a complete workflow.

---

_[View the full topic](https://discuss.tryton.org/t/how-to-do-unit-testing/1699)._
