Comments (8)
Could you share how you're creating the event generator? Is it from a view already added to a UIWindow?
from hammer.
@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
from hammer.
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.
@gabriellanata
As screenshot,
- Setup according to the setup instructions.
- Xcode's version is 12.5
- iOS Deployment Target
- This issue occurs on simulator. Simulator info:
- This issue occurs on physical device. My device is iPhoneX(iOS 14.6)
from hammer.
from hammer.
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.
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.
@gabriellanata
Sorry to reply now, I tried your suggestion and it works, thank you very much.
from hammer.
Related Issues (14)
- having trouble interacting with the callout bar HOT 8
- Question: Watch Support HOT 3
- Working with SwiftUI Lists? HOT 2
- Hammer fails to build with Xcode 13 beta 4 HOT 3
- viewIsVisible Implementation Incorrect HOT 6
- How to use in Objective-c project HOT 2
- Xcode 13.3 can't compile Hammer 0.14.0 HOT 3
- New console log warnings and suggestions on flaky tests? HOT 2
- SFSafariViewController support
- Missing support for `.stationary` touches HOT 3
- Tests are only failing in remote CI pipeline. HOT 2
- waitUntilHittable never waits? HOT 1
- cocoapods support? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hammer.