gpt4 book ai didi

unit-testing - 在 xUnit.net 中,是否可以按顺序运行测试?

转载 作者:行者123 更新时间:2023-11-28 19:40:09 25 4
gpt4 key购买 nike

我知道您通常不应该依赖单元测试的顺序,但在 xunit 中是否可以让您的测试按特定顺序运行?

最佳答案

我们的示例项目中有一个名为 PrioritizedFixtureSample 的示例,它允许您控制测试的顺序。

查看我们最新版本中的示例:https://xunit.net/#releases

关于unit-testing - 在 xUnit.net 中,是否可以按顺序运行测试?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1250062/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com