bala4901
(Markus Bala)
1
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.
ced
(Cédric Krier)
2
No, the ModuleTestCase is for testing a module.
Of course you can create your own TestCase but I really do not see the point.
ced
(Cédric Krier)
3
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
bala4901
(Markus Bala)
4
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.
ced
(Cédric Krier)
5
CI must always run all the tests otherwise breakage may be unnoticed.
1 Like
system
(system)
Closed
6
This topic was automatically closed 12 hours after the last reply. New replies are no longer allowed.