NUnit3测试似乎没有并行运行

时间:2017-07-03 15:00:07

标签: nunit nunit-3.0 nunit-console

我有以下

[assembly: LevelOfParallelism(10)]

[Parallelizable(ParallelScope.Self)]
public class MessageHandlerTests
{
    [Test]
    public async Task WhenCallingHandle_ShouldInvokeConsumer(
        [Values(1, 25)] int messageCount,
        [Values(5, 12)] int processingTimeSeconds,
        [Values(SendMode.AzureServiceBus, SendMode.BrokeredMessageSender)] SendMode sendMode,
        [Values(ConsumerAction.None, ConsumerAction.Publish, ConsumerAction.Reply, ConsumerAction.Send)] ConsumerAction consumerAction)
    {
    ...
    }
}

这是一个半长时间运行的测试(大约30秒),我在整个测试过程中记录,据我所知,它不是通过Test Explorernunit3-console.exe

关于我做错的任何想法?

0 个答案:

没有答案