# Is it possible to disable basic test?

**URL:** https://discuss.tryton.org/t/is-it-possible-to-disable-basic-test/7494
**Category:** Developer
**Created:** [July 25, 2024, 6:22pm UTC](https://discuss.tryton.org/t/is-it-possible-to-disable-basic-test/7494 "2024-07-25T18:22:26Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![bala4901](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/b/fbc32d/32.png) [@bala4901](https://discuss.tryton.org/u/bala4901)
#### Post date: [July 25, 2024, 6:22pm UTC](https://discuss.tryton.org/t/is-it-possible-to-disable-basic-test/7494/1 "2024-07-25T18:22:26Z")

</div>

Hi,

May i know is it possible to disable or off the basic test from Trytond?

It due to normally we have multiple test case, the basic test will run for each test case so it quite time consuming.

My planning is 1 test case just for simple install module which cover all the basic test and others for business logic or others.

---

<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: [July 25, 2024, 9:51pm UTC](https://discuss.tryton.org/t/is-it-possible-to-disable-basic-test/7494/2 "2024-07-25T21:51:56Z")

</div>

No, the `ModuleTestCase` is for testing a module.  
Of course you can create your own TestCase but I really do not see the point.

---

<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: [July 26, 2024, 8:13am UTC](https://discuss.tryton.org/t/is-it-possible-to-disable-basic-test/7494/3 "2024-07-26T08:13:14Z")

</div>

Also you can run a single test method using the [testing commands](https://docs.tryton.org/latest/server/topics/testing.html) and the [test discovery options](https://docs.python.org/3/library/unittest.html#test-discovery) and [test unittest options](https://docs.python.org/3/library/unittest.html#command-line-options) like:

```auto
$ python3 -m unittest discover -s trytond.modules.my_module.tests -p test_module.py -k test_my_function

```

---

<div class="post-metadata">

### Author: ![bala4901](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/b/fbc32d/32.png) [@bala4901](https://discuss.tryton.org/u/bala4901)
#### Post date: [July 26, 2024, 10:17am UTC](https://discuss.tryton.org/t/is-it-possible-to-disable-basic-test/7494/4 "2024-07-26T10:17:14Z")

</div>

Thank @ced , yes iam doing this while test in local.  
When doing in the pipelines, it tested all test cases.

It okay actually, but I just think whether can shorten the test duration for pipelines.

---

<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: [July 26, 2024, 10:44am UTC](https://discuss.tryton.org/t/is-it-possible-to-disable-basic-test/7494/5 "2024-07-26T10:44:01Z")

</div>

CI must always run all the tests otherwise breakage may be unnoticed.

---

<div class="post-metadata">

### Author: ![system](https://discuss-cdn.tryton.org/uploads/default/original/1X/c6f8ec0a40525cdcd50058c734283450a4b3d38b.png) [@system](https://discuss.tryton.org/u/system)
#### Post date: [July 26, 2024, 10:44pm UTC](https://discuss.tryton.org/t/is-it-possible-to-disable-basic-test/7494/6 "2024-07-26T22:44:47Z")

</div>

This topic was automatically closed 12 hours after the last reply. New replies are no longer allowed.
