使用 NUnit v3,我将 [Parallelizable(ParallelScope.Fixtures)] 添加到 2 个单独的 [TestFixtures]。
积极的是它们运行,消极的是它们不并行运行,我是否缺少需要在代码中注明的语法?我已经看过并且目前处于 alpha 阶段,它们支持并行运行 TestFixtures,而不是在 Fixture 中进行测试。
但是我没有看到我的测试并行运行。我的目标是酱实验室。
[TestFixture, Description("IE10, Launch url, verify elements, log in, verify landing page")]
//will run test fixtures in parallel
[Parallelizable(ParallelScope.Fixtures)]
和
//second series of tests to run in parallel
[TestFixture, Description("IE9, Launch url, verify elements, log in, verify landing page")]
//will run test fixtures in parallel
[Parallelizable(ParallelScope.Fixtures)]
每个测试都线性运行并成功,为我的目的在 TestFixture 级别运行有效。但是我觉得我在这里错过了一个概念。
任何帮助都会很好地帮助我弄清楚为什么这不起作用。
谢谢任