Skip to content

Parallel acceleration on startup (constant/liner/exponential/etc...) #2105

Closed
@shlomiassaf

Description

@shlomiassaf

First of, thank you guys for this amazing framework.

This is, I believe, the holy grail of testing framework for DotNet!

You get native implementation for virtually any need, not even mentioning the speed gain from code gen and the debugging goodies.


To my point, I was wondering if it's possible to allow accelerated parallel initialization.

Let's say I start with a limit of 20 parallel runs.
They all start at the same time, which in some cases creates a big load on the system as a lot of things might happen at start, regardless of the shared initialization setup like DB, broker etc...

If the startup for each parallel run has a random wait jitter this will most likely help with the load.

This wait is done once per thread, or parallel execution unit, however you frame it.
It's not a wait per test.

I have 445 tests, when I run with parallel limit 20 I get failures on the first tests
They saldom pass, and when they do, the entire suite pass.

It might be that I need to add some protections for multi-threading, though I doubt it.
With that said, that code which fail is on startup which is never executed multithreaded and not intended to, as most code is.

Hopefuly you can consider this one, if it's doable and not managed by the MS testing platform

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions