Functional tests can execute 4-5x faster (non-integration mode)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
zaqar |
New
|
Undecided
|
Eva Balycheva |
Bug Description
Currently functional test base class "zaqar.
Functional test base class "FunctionalTest
I tried it and it makes functional tests execution in non-integration mode up to 4-5x times faster! 20 seconds vs 5 seconds on my machine. I haven't detected any problems.
I can propose a change so you can test it yourself. If problems will be detected, we can abandon the change and mark this bug report as invalid.
Also:
Functional tests in integration mode can be accelerated too up to 7x times. On my machine it's 235 seconds vs 35 seconds.
As you may see class attribute "server" is not actually reusable. The server is terminated after each test class's test case execution:
see: https:/
But there's a problem. When I make it reusable, 8 tests out of 219 fail - few tests in "TestPools" and "TestHealth" classes.
These tests must be adapted to make them work with reusable "server" if we want to accelerate functional tests in integration mode.
I can open separate bug report/change for this.
description: | updated |
Changed in zaqar: | |
assignee: | nobody → Eva Balycheva (ubershy) |
summary: |
- Functional tests can execute 4-5x faster + Functional tests can execute 4-5x faster (non-integration mode) |
description: | updated |
description: | updated |
description: | updated |