Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Simulator UI Tests #1558

Merged
merged 11 commits into from Dec 20, 2021
Merged

ci: Simulator UI Tests #1558

merged 11 commits into from Dec 20, 2021

Conversation

philipphofmann
Copy link
Member

Replace flaky SauceLabs tests with running UI tests on simulators. In another PR, I'm going to enable SauceLabs again.

#skip-changelog

@@ -35,13 +35,13 @@ class SpanObserver: NSObject {
func addSpanObserver(forKeyPath keyPath: String, callback : @escaping (Span) -> Void) {
callbacks[keyPath] = callback
//The given span may be a SentryTracer that wont respond to KVO. We need to get the root Span
let span = span.rootSpan() ?? span
(span as? NSObject)?.addObserver(self, forKeyPath: keyPath, options: .new, context: nil)
let spanToObserve = span.rootSpan() ?? span
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Didn't compile with Xcode 12.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you have the error message?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

@brustolin brustolin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! 🎉

@codecov-commenter
Copy link

Codecov Report

Merging #1558 (56362df) into master (b9f82e0) will decrease coverage by 0.01%.
The diff coverage is n/a.

❗ Current head 56362df differs from pull request most recent head 2f91a6d. Consider uploading reports for the commit 2f91a6d to get more accurate results
Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1558      +/-   ##
==========================================
- Coverage   95.96%   95.94%   -0.02%     
==========================================
  Files         157      157              
  Lines        7061     7061              
==========================================
- Hits         6776     6775       -1     
- Misses        285      286       +1     
Impacted Files Coverage Δ
Sources/Sentry/SentryTracer.m 98.06% <0.00%> (-0.39%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b9f82e0...2f91a6d. Read the comment docs.

@philipphofmann philipphofmann merged commit 2be0dc5 into master Dec 20, 2021
@philipphofmann philipphofmann deleted the ci/simulator-tests branch December 20, 2021 11:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants