KnapsackPro / knapsack_pro-ruby

Knapsack Pro gem splits tests across parallel CI nodes and makes sure that tests run in optimal time
https://knapsackpro.com
MIT License
131 stars 27 forks source link

fix(timecop gem): add support for Timecop 0.9.9 so that we could track proper tests' execution time when `Process.clock_gettime` is mocked #262

Closed ArturT closed 2 months ago

ArturT commented 3 months ago

Story

link to the internal story

Related

Changes introduced by Timecop 0.9.9:

Process.clock_gettime is mocked.

Timecop 0.9.10 makes Process.clock_gettime optionally mocked. The default is Timecop.mock_process_clock = false.

Our old PRs related to time tracking and mocking time:

Description

Add support for Timecop 0.9.9 so that we could track proper tests' execution time when Process.clock_gettime is mocked.

Changes

Checklist reminder