Temporary, in-memory HKHealthStore

Originator:robnapier
Number:rdar://24929968 Date Originated:02-Mar-2016 09:33 AM
Status:Open Resolved:
Product:iOS SDK Product Version:iOS 9.2
Classification:Enhancement Reproducible:Not Applicable
 
Currently, all HKHealthStore objects point to the system health store. This makes automated testing of HealthKit code extremely difficult. There is no automated way to reset the health store to a known state, and granting authorization requires UI interaction, greatly complicating test cases.

It should be possible to create a temporary, in-memory HKHealthStore that automatically grants authorization when requested.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!