Programmatically control Reqnroll configuration #659
-
Is there way to programmatically control the Reqnroll configuration values? [BeforeTestRun]
public static void BeforeTestRun(IObjectContainer objectContainer)
{
var reqrollConfiguration = objectContainer.Resolve<ReqnrollConfiguration>();
reqrollConfiguration.AddNonParallelizableMarkerForTags = ["RunAllInParallel"];
} I'm assuming that this is because the change is being made too late in the process. Is there some kind of hook that exists that provides this ability? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The short answer is No. There is no runtime configuration API. The example given of parallel execution is used at code generation time(during compilation) to set the appropriate test framework specific attribute. Assuming we had an API for runtime configuration it would apply to the configuration settings that are used at runtime such as those in the runtime section of the configuration file: https://docs.reqnroll.net/latest/installation/configuration.html#runtime |
Beta Was this translation helpful? Give feedback.
The short answer is No. There is no runtime configuration API.
The example given of parallel execution is used at code generation time(during compilation) to set the appropriate test framework specific attribute.
Assuming we had an API for runtime configuration it would apply to the configuration settings that are used at runtime such as those in the runtime section of the configuration file: https://docs.reqnroll.net/latest/installation/configuration.html#runtime