Gradle problem with the parallel execution of the tests #86
Unanswered
pouryafard75
asked this question in
Q&A
Replies: 1 comment 1 reply
-
@victorgveloso, Could you please share your insights? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, I would like to report a strange behavior that I am facing for running my tests.
The problem only occurs while executing
with the following error log:RefactoringOraclePerfectDiffTest
. This test runs the diff for a set of commits from the tmp1 directory. By enabling the parallel execution of the tests (which is currently enabled by default in the project), some of the tests will get ignored due to the heap space issue:By adding the
@Isolated
keyword to this test suit, I suppressed the parallel execution of the tests for this exact class but it will be significantly slower.I tried this with the Ecplise, and surprisingly the error vanished.
The problem seems to be related to IntelliJ, I have tried the following approaches to fix the issue, but neither of them has worked so far:-Xms
and-XmX
)org.junit.jupiter:junit-jupiter-api
and'org.junit.jupiter:junit-jupiter-engine:
to 5.7.0 (from stackoverflow)Currently, the only workaround was to suppress the parallelization for this test
@Isolated
, which leads to slower execution.P.S: IntelliJ runs the test with gradle, but Ecplise has the option to run them as JUnit test without having gradle to interfere and that's the reason why it works.
Beta Was this translation helpful? Give feedback.
All reactions