소스 검색

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

Deniz Cengiz 1 년 전
부모
커밋
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
 @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 {
 @Suite("Bolus Calculator Tests") struct BolusCalculatorTests: Injectable {
     @Injected() var calculator: BolusCalculationManager!
     @Injected() var calculator: BolusCalculationManager!
     @Injected() var settingsManager: SettingsManager!
     @Injected() var settingsManager: SettingsManager!