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

Prefire basic implementation #1743

Merged
merged 13 commits into from
Sep 20, 2023
Merged

Conversation

Velin92
Copy link
Member

@Velin92 Velin92 commented Sep 18, 2023

For now this includes a basic but tweakable configuration of Prefire with one single Preview test.

  • The preview tests run in our existing UnitTests suite
  • They assume that the tests will always be run on an iPhone 14 light mode with iOS 16.

We probably need to decide if we want to have a different test suite just for the preview testing or if we are okay running unit tests with this configuration (iPhone 14 iOS 16) on the CI and also locally always.

After this is merged I'll proceed into making another PR were I make all our Previews testable, which should bump also the code coverage by a lot and increase resilience to breaking view changes

@Velin92 Velin92 requested a review from a team as a code owner September 18, 2023 16:29
@Velin92 Velin92 requested review from pixlwave and stefanceriu and removed request for a team September 18, 2023 16:29
@github-actions
Copy link

github-actions bot commented Sep 18, 2023

Warnings
⚠️ This pull request seems relatively large. Please consider splitting it into multiple smaller ones.
⚠️ Please add a changelog.
⚠️ Some of the commits are missing ticket numbers. Please consider squashing all commits that don't have a tracking number.
⚠️ You seem to have made changes to views. Please consider adding screenshots.

Generated by 🚫 Danger Swift against 5d6355f

@Velin92 Velin92 force-pushed the mauroromito/prefire_preview_testing branch from f6dd2f8 to 69edce6 Compare September 18, 2023 16:33
@Velin92 Velin92 force-pushed the mauroromito/prefire_preview_testing branch 2 times, most recently from c8d77a6 to 4bd6e0d Compare September 19, 2023 10:22
@codecov
Copy link

codecov bot commented Sep 19, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: +0.67% 🎉

Comparison is base (faad37c) 58.51% compared to head (5d6355f) 59.19%.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #1743      +/-   ##
===========================================
+ Coverage    58.51%   59.19%   +0.67%     
===========================================
  Files          428      428              
  Lines        29127    29127              
  Branches     14363    14363              
===========================================
+ Hits         17045    17241     +196     
+ Misses       11607    11405     -202     
- Partials       475      481       +6     
Flag Coverage Δ
unittests 24.70% <100.00%> (+2.51%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Changed Coverage Δ
...Sources/Services/Timeline/TimelineItemSender.swift 100.00% <ø> (ø)
...Screens/RoomScreen/View/Style/TimelineStyler.swift 97.36% <100.00%> (+88.15%) ⬆️

... and 7 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Velin92 Velin92 force-pushed the mauroromito/prefire_preview_testing branch 2 times, most recently from 2d5b14a to b1d977d Compare September 19, 2023 16:07
Copy link
Member

@stefanceriu stefanceriu left a comment

Choose a reason for hiding this comment

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

Looks amazing, awesome job! 👏

.github/workflows/unit_tests.yml Show resolved Hide resolved
.swiftlint.yml Show resolved Hide resolved
fastlane/Fastfile Show resolved Hide resolved
@Velin92 Velin92 force-pushed the mauroromito/prefire_preview_testing branch from b1d977d to 5d6355f Compare September 20, 2023 11:37
@Velin92 Velin92 enabled auto-merge (squash) September 20, 2023 11:37
@sonarcloud
Copy link

sonarcloud bot commented Sep 20, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 2 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@Velin92 Velin92 merged commit 341b177 into develop Sep 20, 2023
10 checks passed
@Velin92 Velin92 deleted the mauroromito/prefire_preview_testing branch September 20, 2023 12:07
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.

3 participants