Community mailing list archives
Re: The Speed of UnitTestsby
DevCO Colombia , David Arnold
In one of our 15 minutes test run...
The actual tests only took 103 seconds.
The remaining 13 minutes and 17 seconds is plain vanilla module and data loading of all kinds with heavy DB writes.
El dom., 14 ago. 2016 a las 16:28, Nhomar Hernandez (<firstname.lastname@example.org>) escribió:
"If your unit tests take more than 10ms to complete, you are definitely doing something wrong."The rationale is obvious: Faster unittests allow for shorter testing cycle, optimally, you want to to TDD (test driven development) and trigger a testing cycle on every save.What odoo has are unittest + integration tests (horizontal crossed tests including database behavior), thos take more time and it is ok.But YES it should be cool if they were faster, I have instances that take 1 hour to complete tests.--