如何订购 NUnitLite 测试(用于集成测试)?
How to order NUnitLite tests (for integration testing)?
我们正在尝试将使用 NUnit 的集成测试移植到 Xamarin 提供的 NUnitLite。一些测试应该按特定顺序 运行。但是,NUnitLite 中似乎没有 OrderAttribute 或任何依赖属性。
是否有任何方法可以在 iOS 和 Android 上按顺序进行 运行ning 测试?
NUnit 2.6.4 和 3.0 按字母顺序运行测试。由于 Xamarin NUnitLite 代码是一个分支,它可能 表现相同。
另一种选择是使用 NUnit 3's Xamarin runner. NUnit 3.2 added an Order attribute and I will be updating the Xamarin runner to use 3.2 shortly. For more information on using the Xamarin runner and NUnit, see Testing Xamarin Projects using NUnit 3
我们正在尝试将使用 NUnit 的集成测试移植到 Xamarin 提供的 NUnitLite。一些测试应该按特定顺序 运行。但是,NUnitLite 中似乎没有 OrderAttribute 或任何依赖属性。
是否有任何方法可以在 iOS 和 Android 上按顺序进行 运行ning 测试?
NUnit 2.6.4 和 3.0 按字母顺序运行测试。由于 Xamarin NUnitLite 代码是一个分支,它可能 表现相同。
另一种选择是使用 NUnit 3's Xamarin runner. NUnit 3.2 added an Order attribute and I will be updating the Xamarin runner to use 3.2 shortly. For more information on using the Xamarin runner and NUnit, see Testing Xamarin Projects using NUnit 3