Parallel acceleration on startup (constant/liner/exponential/etc...) #2123
shlomiassaf
started this conversation in
Ideas
Replies: 2 comments
-
Hmm.. this would be quite complicated to build I think. How do you see the API looking? |
Beta Was this translation helpful? Give feedback.
0 replies
-
It a configuration. Altough, I wouldn't bother. replaced with Assert.Then and 100% I gotta say, this is impressive in so many ways! I have no doubt, this will be the de-facto framework for unit testing. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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
Beta Was this translation helpful? Give feedback.
All reactions