.NET MAUI 测试完全指南 (2026):xUnit、Appium 与 Maestro 实战
一份覆盖.NET MAUI 10完整测试体系的实战指南:xUnit + Moq 做ViewModel单元测试,Appium 2.x跨平台UI自动化,Maestro YAML端到端测试,全部接入GitHub Actions流水线。
Sofia is a mobile platform engineer with eleven years across native iOS, Xamarin, and now .NET MAUI. She spent three years at Spotify in Stockholm working on internal tooling for the mobile build infrastructure, then joined a fintech in Milan where she leads the mobile foundations team responsible for a MAUI app that handles around 2 million monthly active users across iOS and Android. Most of what she writes about lives in the build and release layer: deterministic builds, fastlane integration for MAUI, code signing on macOS runners, MAUI .NET 9 upgrade postmortems, and benchmarking startup time on cheap Android hardware. She co-organizes the Milano .NET meetup and gave a talk at NDC Oslo 2025 on shrinking a MAUI Android APK from 84 MB to 31 MB without losing features.
一份覆盖.NET MAUI 10完整测试体系的实战指南:xUnit + Moq 做ViewModel单元测试,Appium 2.x跨平台UI自动化,Maestro YAML端到端测试,全部接入GitHub Actions流水线。
从OAuth 2.0+PKCE身份验证、SecureStorage安全存储、Certificate Pinning证书固定到NativeAOT编译和代码混淆,全面覆盖.NET MAUI移动应用安全的每个关键层面,附完整代码示例和平台配置。