- Issue created by @catch
- Status changed to Needs review
8 months ago 5:03pm 20 April 2024 - Status changed to Needs work
8 months ago 5:38pm 20 April 2024 - π¬π§United Kingdom catch
Drupal\Tests\datetime_range\Functional\DateRangeFieldFromToTest
27 passes - still over 5 minutes.Might need to do this without a data provider and handle the 27 variations with the test itself.
- Status changed to Needs review
8 months ago 8:45pm 20 April 2024 - π¬π§United Kingdom catch
Locally the test finishes in 30 seconds, now, so approximately 1/20th the time.
- π¬π§United Kingdom catch
This is fast enough it's fine in the main class now, moved back and re-titling. So the only change here is to use a foreach loop for each variation instead of a full install of Drupal each time.
- π³πΏNew Zealand quietone
I ran the test, just once, results below, with and without the diff and I reviewed the MR. I am not fond on describing methods as 'helpers' and I left a suggestion in the MR.
Before
real 8m11.738s
user 0m0.077s
sys 0m0.054sAfter
real 0m23.966s
user 0m0.068s
sys 0m0.014s - Status changed to RTBC
8 months ago 6:53pm 21 April 2024 - πΊπΈUnited States dww
Love it. I do stuff like this a lot in tests. I basically can't stand to see data providers in Functional tests, and heaven-forbid in FunctionalJavaScript.
The results in #8 are mind blowing, given the small size of the diff. 8:11 to 0:24 is more than a 20X speedup. π
Ship it!
Thanks,
-Derek -
quietone β
committed 03f20224 on 11.x
Issue #3442176 by catch, dww: DateRangeFieldTest should not use a data...
-
quietone β
committed 03f20224 on 11.x
-
quietone β
committed 38a5234b on 10.3.x
Issue #3442176 by catch, dww: DateRangeFieldTest should not use a data...
-
quietone β
committed 38a5234b on 10.3.x
- Status changed to Fixed
8 months ago 5:51am 22 April 2024 - π³πΏNew Zealand quietone
I do like using less resources to do task.
Committed and pushed to 11.x and 10.3.x. Thanks!
Automatically closed - issue fixed for 2 weeks with no activity.