8000 PM-18271: Fix AboutProcessorTests if using overridden bundle ID by matt-livefront · Pull Request #1347 · bitwarden/ios · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

PM-18271: Fix AboutProcessorTests if using overridden bundle ID #1347

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

Merged
merged 1 commit into from
Feb 13, 2025

Conversation

matt-livefront
Copy link
Collaborator
@matt-livefront matt-livefront commented Feb 13, 2025

🎟️ Tracking

PM-18271

📔 Objective

The following tests have been failing for me because I override the bundle ID for running on device. This updates the tests to inject the bundle ID so it's not dependent on the app's bundle ID at the time of running tests.

AboutProcessorTests.swift:158 test_receive_versionTapped_noAdditionalInfo(): XCTAssertEqual failed: ("Optional("© Bitwarden Inc. 2015–2025\n\nVersion: 2024.6.0 (1)\n📱 iPhone14,2 🍏 iOS 16.4 📦 Unkown")") is not equal to ("Optional("© Bitwarden Inc. 2015–2025\n\nVersion: 2024.6.0 (1)\n📱 iPhone14,2 🍏 iOS 16.4 📦 Production")")

AboutProcessorTests.swift:181 test_receive_versionTapped_withAdditionalInfo(): XCTAssertEqual failed: ("Optional("© Bitwarden Inc. 2015–2025\n\nVersion: 2024.6.0 (1)\n📱 iPhone14,2 🍏 iOS 16.4 📦 Unkown\n🧱 commit: bitwarden/ios/main@abc123\n💻 build source: bitwarden/ios/actions/runs/123/attempts/123\n🛠️ compiler flags: DEBUG_MENU")") is not equal to ("Optional("© Bitwarden Inc. 2015–2025\n\nVersion: 2024.6.0 (1)\n📱 iPhone14,2 🍏 iOS 16.4 📦 Production\n🧱 commit: bitwarden/ios/main@abc123\n💻 build source: bitwarden/ios/actions/runs/123/attempts/123\n🛠️ compiler flags: DEBUG_MENU")")

AboutProcessorTests.swift:207 test_receive_versionTapped_additionalInfoFiltersEmptyValues(): XCTAssertEqual failed: ("Optional("© Bitwarden Inc. 2015–2025\n\nVersion: 2024.6.0 (1)\n📱 iPhone14,2 🍏 iOS 16.4 📦 Unkown\n🧱 commit: bitwarden/ios/main@abc123\n💻 build source: bitwarden/ios/actions/runs/123/attempts/123")") is not equal to ("Optional("© Bitwarden Inc. 2015–2025\n\nVersion: 2024.6.0 (1)\n📱 iPhone14,2 🍏 iOS 16.4 📦 Production\n🧱 commit: bitwarden/ios/main@abc123\n💻 build source: bitwarden/ios/actions/runs/123/attempts/123")")

⏰ Reminders before review

  • Contributor guidelines followed
  • All formatters and local linters executed and passed
  • Written new unit and / or integration tests where applicable
  • Protected functional changes with optionality (feature flags)
  • Used internationalization (i18n) for all UI strings
  • CI builds passed
  • Communicated to DevOps any deployment requirements
  • Updated any necessary documentation (Confluence, contributing docs) or informed the documentation team

🦮 Reviewer guidelines

  • 👍 (:+1:) or similar for great changes
  • 📝 (:memo:) or ℹ️ (:information_source:) for notes or general info
  • ❓ (:question:) for questions
  • 🤔 (:thinking:) or 💭 (:thought_balloon:) for more open inquiry that's not quite a confirmed issue and could potentially benefit from discussion
  • 🎨 (:art:) for suggestions / improvements
  • ❌ (:x:) or ⚠️ (:warning:) for more significant problems or concerns needing attention
  • 🌱 (:seedling:) or ♻️ (:recycle:) for future improvements or indications of technical debt
  • ⛏ (:pick:) for minor or nitpick changes

Copy link
Contributor

Logo
Checkmarx One – Scan Summary & Detailsa80a3bd7-8239-4fea-bbf1-211171a2b191

Great job, no security vulnerabilities found in this Pull Request

Copy link
codecov bot commented Feb 13, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.63%. Comparing base (ab721f3) to head (de2b3a0).
Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1347      +/-   ##
==========================================
- Coverage   89.63%   89.63%   -0.01%     
==========================================
  Files         754      754              
  Lines       47469    47470       +1     
==========================================
  Hits        42548    42548              
- Misses       4921     4922       +1     

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

@matt-livefront matt-livefront merged commit 1ea0bd3 into main Feb 13, 2025
9 checks passed
@matt-livefront matt-livefront deleted the matt/PM-18271-about-processor-tests branch February 13, 2025 19:02
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
0