Is it possible to disable basic test?

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.

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

Also you can run a single test method using the testing commands and the test discovery options and test unittest options like:

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

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.

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

1 Like

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