[PR #150] [CLOSED] [WIP] Unit tests for all URLSession methods #162

Closed
opened 2026-03-03 19:12:11 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ProxymanApp/atlantis/pull/150
Author: @NghiaTranUIT
Created: 7/24/2024
Status: Closed

Base: mainHead: feat/unit-tests


📝 Commits (5)

📊 Changes

20 files changed (+1246 additions, -41 deletions)

View changed files

📝 .swiftpm/xcode/xcshareddata/xcschemes/Atlantis.xcscheme (+10 -0)
.swiftpm/xcode/xcshareddata/xcschemes/AtlantisTests.xcscheme (+71 -0)
📝 Example/Atlantis-Example-App/Atlantis-Example-App.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved (+2 -2)
Package.resolved (+14 -0)
📝 Package.swift (+7 -1)
📝 Sources/Atlantis.swift (+7 -0)
Sources/Enviroment.swift (+22 -0)
📝 Sources/Message.swift (+39 -4)
📝 Sources/Packages.swift (+4 -4)
Sources/Proxyman/AtlantisConnection.swift (+178 -0)
Sources/Proxyman/AtlantisModels.swift (+345 -0)
Sources/Proxyman/BonjourService.swift (+241 -0)
📝 Sources/Transporter.swift (+1 -1)
Tests/LinuxMain.swift (+0 -6)
Tests/Resources/AtlantisTests.xctestplan (+29 -0)
Tests/Resources/Info.plist (+28 -0)
Tests/atlantisTests/AtlantisTests.swift (+117 -0)
Tests/atlantisTests/HTTPBinCompare.swift (+112 -0)
Tests/atlantisTests/URLRequestFactory.swift (+19 -0)
Tests/atlantisTests/atlantisTests.swift (+0 -23)

📄 Description

  • Setup Unit Test target
  • Test every method of URLSession to prove that our Method Swizzling logic is working fine. Capture HTTP Request and Response
  • Test Bonjour Service

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ProxymanApp/atlantis/pull/150 **Author:** [@NghiaTranUIT](https://github.com/NghiaTranUIT) **Created:** 7/24/2024 **Status:** ❌ Closed **Base:** `main` ← **Head:** `feat/unit-tests` --- ### 📝 Commits (5) - [`187dcb3`](https://github.com/ProxymanApp/atlantis/commit/187dcb3ea61b3df61f5817c6024ee071b94091bc) Setup Unit tests - [`d59e83d`](https://github.com/ProxymanApp/atlantis/commit/d59e83d8514ac7f3c3d4f5d5006996807f7fde87) Try to add Alamofire - [`5438870`](https://github.com/ProxymanApp/atlantis/commit/543887047df6a07175c6e0c32a5788381ada82f9) WIP - [`d813a19`](https://github.com/ProxymanApp/atlantis/commit/d813a196b8e7a8bb1fbfe4746a823ad1dcf4759c) WIP - [`9ee3c9e`](https://github.com/ProxymanApp/atlantis/commit/9ee3c9e5edfb0912284adf13173b7e22869bb5d3) WIP - Add Bonjour Service ### 📊 Changes **20 files changed** (+1246 additions, -41 deletions) <details> <summary>View changed files</summary> 📝 `.swiftpm/xcode/xcshareddata/xcschemes/Atlantis.xcscheme` (+10 -0) ➕ `.swiftpm/xcode/xcshareddata/xcschemes/AtlantisTests.xcscheme` (+71 -0) 📝 `Example/Atlantis-Example-App/Atlantis-Example-App.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved` (+2 -2) ➕ `Package.resolved` (+14 -0) 📝 `Package.swift` (+7 -1) 📝 `Sources/Atlantis.swift` (+7 -0) ➕ `Sources/Enviroment.swift` (+22 -0) 📝 `Sources/Message.swift` (+39 -4) 📝 `Sources/Packages.swift` (+4 -4) ➕ `Sources/Proxyman/AtlantisConnection.swift` (+178 -0) ➕ `Sources/Proxyman/AtlantisModels.swift` (+345 -0) ➕ `Sources/Proxyman/BonjourService.swift` (+241 -0) 📝 `Sources/Transporter.swift` (+1 -1) ➖ `Tests/LinuxMain.swift` (+0 -6) ➕ `Tests/Resources/AtlantisTests.xctestplan` (+29 -0) ➕ `Tests/Resources/Info.plist` (+28 -0) ➕ `Tests/atlantisTests/AtlantisTests.swift` (+117 -0) ➕ `Tests/atlantisTests/HTTPBinCompare.swift` (+112 -0) ➕ `Tests/atlantisTests/URLRequestFactory.swift` (+19 -0) ➖ `Tests/atlantisTests/atlantisTests.swift` (+0 -23) </details> ### 📄 Description - [x] Setup Unit Test target - [ ] Test every method of URLSession to prove that our Method Swizzling logic is working fine. Capture HTTP Request and Response - [ ] Test Bonjour Service --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-03 19:12:11 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/atlantis#162
No description provided.