Просмотр исходного кода

Add note about running tests with fresh simulator in case of sudden inconsistencies

Deniz Cengiz 1 год назад
Родитель
Сommit
60bec494c8
1 измененных файлов с 7 добавлено и 0 удалено
  1. 7 0
      TrioTests/BolusCalculatorTests/BolusCalculatorTests.swift

+ 7 - 0
TrioTests/BolusCalculatorTests/BolusCalculatorTests.swift

@@ -3,6 +3,13 @@ import Testing
 
 @testable import Trio
 
+/// ⚠️ NOTE:
+/// If tests in this suite are failing unexpectedly (e.g. sudden unexplainable mismatches for decimal places for calculated values),
+/// try running the test suite on a clean simulator.
+///
+/// You can reset the simulator from the menu: **Device > Erase All Content and Settings**
+/// or by launching with `-com.apple.CoreData.SQLDebug 1` for more insight into the issue.
+///
 @Suite("Bolus Calculator Tests") struct BolusCalculatorTests: Injectable {
     @Injected() var calculator: BolusCalculationManager!
     @Injected() var settingsManager: SettingsManager!