-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
parallel data provider does not work correctly with injected stages #198
Comments
There are dependencies which are still not modularized in JDK 11 sense, causing qa-jgiven-commons to fail building:
https://stackoverflow.com/questions/67588895/porting-maven-project-from-jdk-8-to-higher |
Parallel data providers not supported in 1.3.0 |
JGiven stage injection does not work well when activated via multiple threads. The only workaround so far is to use dynamic stages. In the base scenario class there should be protected methods returning each of required stages, like this: protected XxxxxElasticSearchActions<?> elasticSearchActions() {
return addStage(XxxxxElasticSearchActions.class);
} Note that JGiven's before/after annotations will not work, hence must call these methods directly on returned stage. See TNG/JGiven#1447 Then, in scenario code: elasticSearchVerifications().then()
.the_xxxx(testData.request.id,
is(Xxxxx.from(testData.request))); |
Current State
Parallel data provider does not work correctly with injected stages.
How to make it better
Per documentation it seems parallel issues were fixed in JGiven 1.3.0.
However, this requires dropping support of JDK 8 and reworking part of the report generators since the model was changed a bit.
The text was updated successfully, but these errors were encountered: