Community mailing list archives

Re: The Speed of UnitTests

DevCO Colombia , David Arnold
- 08/16/2016 02:03:19
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.
Not cool!

El dom., 14 ago. 2016 a las 16:28, Nhomar Hernandez (<>) escribió:
On Sun, Aug 14, 2016 at 4:23 PM, David Arnold <> wrote:
"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.

Nhomar Hernandez
CEO Vauxoo.
Twitter: @nhomar
Odoo Gold Partner
Skype: nhomar00 (Envia mail previo no lo superviso siempre).
Móvil Venezuela:
+58 4144110269
Móvil México:
+52 1 4773933942

Post to: