Skip to content

Run feature test in parallel does not respect "maxParallelThreads" in xUnit #328

Answered by DerAlbertCom
llbonet14 asked this question in Q&A
Discussion options

You must be logged in to vote

Since Xunit 2.8, Xunit has the conservative mode for https://xunit.net/docs/configuration-files#parallelAlgorithm, which then ensures that only such much test are running concurrently which are configured as max threads. That works.

However, this does not work with Reqnroll.Xunit. Because the Regnroll runner which is registered with an Assembly Attribute which Regnroll creates does not know about this, and does not switch the mode. I would assume because of backward compatibility from the Xunit side.

I tested this in a case. We had Xunit conservative mode enabled in a project with Reqnroll, all tests would still span up in parallel (e.g. agressive mode), even the direct async Xunit tests.

T…

Replies: 6 comments 11 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@gasparnagy
Comment options

Comment options

You must be logged in to vote
1 reply
@gasparnagy
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
8 replies
@llbonet14
Comment options

@llbonet14
Comment options

@ajeckmans
Comment options

@DerAlbertCom
Comment options

Answer selected by 304NotModified
@gasparnagy
Comment options

@DerAlbertCom
Comment options

Comment options

You must be logged in to vote
1 reply
@gasparnagy
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants