菜鸟教程小白 发表于 2022-12-11 19:16:05

ios - 我该如何自动化 Xamarin.iOS 单元测试项目


                                            <p><p>如何自动化 Xamarin.iOS 单元测试项目。 </p>

<p>对于 Android,我发现此链接运行良好。</p>

<p> <a href="https://developer.xamarin.com/guides/android/troubleshooting/questions/automate-android-nunit-test/" rel="noreferrer noopener nofollow">https://developer.xamarin.com/guides/android/troubleshooting/questions/automate-android-nunit-test/</a> </p>

<p>Xamarin.iOS 是否也有类似的引用资料?</p></p>
                                    <br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
                                            <p><p>在撰写本文时,我不相信您想做的事情是可能的。如果我理解您的意思,您可能想对某个测试运行程序(大概在 XS 或 VS 中)说“全部运行”,然后立即获得结果,但这不是 Xamarin.iOS 的工作方式。我确定您已经看过 Xamarin 的 iOS 测试快速入门,但如果没有 <a href="https://learn.microsoft.com/en-us/xamarin/ios/deploy-test/touch.unit" rel="noreferrer noopener nofollow">here that is</a> .</p>
<p>您必须设置一个使用 <a href="https://github.com/xamarin/Touch.Unit" rel="noreferrer noopener nofollow">Touch.Unit</a> 的单元测试应用程序框架,启动测试应用程序,并“触摸”您想要运行的测试。我这样做的经验并不是那么好。运行器本身似乎有问题,并且您可以使用的其他工具受到限制(例如,模拟框架不起作用,使用 <a href="https://github.com/shouldly/shouldly" rel="noreferrer noopener nofollow">Shouldly</a> 进行的断言不会注册)。不过,我想总比没有好!</p></p>
                                   
                                                <p style="font-size: 20px;">关于ios - 我该如何自动化 Xamarin.iOS 单元测试项目,我们在Stack Overflow上找到一个类似的问题:
                                                        <a href="https://stackoverflow.com/questions/42831118/" rel="noreferrer noopener nofollow" style="color: red;">
                                                                https://stackoverflow.com/questions/42831118/
                                                        </a>
                                                </p>
                                       
页: [1]
查看完整版本: ios - 我该如何自动化 Xamarin.iOS 单元测试项目