Giter Club home page Giter Club logo

Comments (8)

gabriellanata avatar gabriellanata commented on July 23, 2024

Could you share how you're creating the event generator? Is it from a view already added to a UIWindow?

from hammer.

pantaopt avatar pantaopt commented on July 23, 2024

image
@gabriellanata Thanks for your prompt reply. I just copyed code from https://github.com/lyft/Hammer/blob/main/Tests/HammerTests/DemoTests.swift#L17

And following is ViewController.swift
image

from hammer.

gabriellanata avatar gabriellanata commented on July 23, 2024

Hmm that's weird. Did you setup your tests to run inside a TestHost app like the setup instructions?

A few additional questions:

  • What iOS version are you compiling for?
  • What device are you compiling for?
  • Are you running the tests on a simulator or physical device?

from hammer.

pantaopt avatar pantaopt commented on July 23, 2024

@gabriellanata
image
As screenshot,

  1. Setup according to the setup instructions.
  2. Xcode's version is 12.5
  3. iOS Deployment Target
    image
  4. This issue occurs on simulator. Simulator info:
    image
  5. This issue occurs on physical device. My device is iPhoneX(iOS 14.6)

from hammer.

pantaopt avatar pantaopt commented on July 23, 2024

My macos version is:
image

from hammer.

gabriellanata avatar gabriellanata commented on July 23, 2024

Sorry I'm not sure what could be causing it. I've ran the included hammer tests on device and they worked fine. Had to apply these changes (#21) but they should not be affecting the error you're having

from hammer.

gabriellanata avatar gabriellanata commented on July 23, 2024

Do you mind testing by removing the guard statement here? https://github.com/lyft/Hammer/blob/main/Sources/Hammer/EventGenerator/EventGenerator.swift#L155 I'm thinking maybe it's unnecessary and getting 0 is fine

from hammer.

pantaopt avatar pantaopt commented on July 23, 2024

@gabriellanata
Sorry to reply now, I tried your suggestion and it works, thank you very much.

from hammer.

Related Issues (14)

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.