PragmaticFlow / NBomber

Modern and flexible load testing framework for Pull and Push scenarios, designed to test any system regardless a protocol (HTTP/WebSockets/AMQP etc) or a semantic model (Pull/Push).
https://nbomber.com
Other
2.08k stars 128 forks source link

Disable reports generation #212

Closed lkurzyniec closed 4 years ago

lkurzyniec commented 4 years ago

Is there a way to disable reports generation?

Enum ReportFormat do not contain None. There is no method like WithoutReports().

AntyaDev commented 4 years ago

Hi @lkurzyniec , I think that you can specify an empty array WithReportFormats(). I will consider adding extension WithoutReports().

lkurzyniec commented 4 years ago

Unfortunately, it doesn't work. I have tried both .WithReportFormats() and .WithReportFormats(new ReportFormat[0]), but still NBomber produce reports.

Here is my code: https://github.com/lkurzyniec/netcore-boilerplate/blob/master/test/HappyCode.NetCoreBoilerplate.Api.LoadTests/LoadTestsBase.cs Of course, during tests I added WithReportFormats(), like:

            var stats = NBomberRunner.RegisterScenarios(new[] { scenario })
                .WithReportFormats(new ReportFormat[0])
                .RunTest();