GithubHelp home page GithubHelp logo

healthkittest's Introduction

Health App Automated Testing Error Replicating Example

This repository demonstrates that the Health App on the iOS simulator instance running in a GitHub Action Runner environment does not display any content in the "Browse" section, making it impossible to test adding external HealthKit data such as EEG data in a UI test.

Expected Behaviour

  1. Download and install Xcode 14.1
  2. Reset the Simulator to get a completely clean instance
  3. Run the UI Tests in this Repo by opening TestApp.xcodeproj.
  4. The unit tests open the Health App and add Health Data using UI tests. You can observe the behavior in the iOS Simulator and see the Results in the Health App:

Observed Behaviour on GitHub Action Runners

  • The GitHub Action Runners run the same UI tests using the GitHub Action found in .github/workflows: build_and_test.yml.
  • The tests fail as the HealthKit's "Browse" tab does not include any content, e.g.,: https://github.com/CardinalKit/HealthKitTest/actions/runs/3466876834.
  • The GitHub Action demonstrates this behavior as the UI tests create a screenshot on save and saves it in a .xcresult package.
  • You can download the results bundle as an artifact created by the UI test and observe its behavior in Xcode by opening the TestAppUITests.xcresult.
  • The following screenshot taken from the https://github.com/CardinalKit/HealthKitTest/actions/runs/3466876834 GitHub Action's .xcresult file from the GitHub Action run demonstrates this behavior:

healthkittest's People

Contributors

igorboskovic3 avatar pschmiedmayer avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.