hallatore / Netling

Netling is a load tester client for easy web testing.
MIT License
1.34k stars 210 forks source link

Suitability for unit tests #28

Closed brentarias closed 5 years ago

brentarias commented 5 years ago

I'd like to expand your tool so that it can also run unit tests through a load-test scenario.

A full explanation of what I want is in this SO post.

How readily do you think your code could be adjusted for this?

hallatore commented 5 years ago

Something like this might be a good starting point.

Worker worker = new Worker(new SocketWorkerJob(uri));
WorkerResult result = await worker.Run(count.Value, new CancellationToken());
// Do something with the result ...