MobileNativeFoundation / bluepill

Bluepill is a reliable iOS testing tool that runs UI tests using multiple simulators on a single machine
BSD 2-Clause "Simplified" License
3.19k stars 232 forks source link

Bug: Bluepill test bundle splitting and packing logic fails when the total estimated time is zero #511

Closed ravimandala closed 2 years ago

ravimandala commented 3 years ago

When provided with test time estimates Bluepill calculates the total estimated execution time and splits the test bundles to try and get optimal concurrency. However, if the total estimated execution time is zero for some reason, then the logic fails to split bundles and gets trapped in an infinite loop. The reasons for zero estimated time could be...

  1. The test names are not read correctly (Eg. the () that are added as a suffix for swift test names in recent Xcode release)
  2. None of the tests in a set has estimated times or have 0 sec estimates.

This issue is a tracker to fix that bug. \cc @ob @chenxiao0228

ravimandala commented 2 years ago

This was fixed in https://github.com/MobileNativeFoundation/bluepill/pull/513 and is a part of v5.10.0 and above.