-
Notifications
You must be signed in to change notification settings - Fork 11
Unexpected error while creating report for label #34
Comments
I hopefully upgraded to:
Also
Still getting the same outcome as before, if trying to run in parallel:
|
Also, sometimes, I get a partial report, ie: 104 tests successfully executed in parallel, 2 reported on :-( The aggregated_report.json file is (in total):
|
Been doing some more unsuccessful debugging. I can see that com.aoe.gebspockreports.GebReportUtils#readGebReport attempts to parse bad JSON. A document always has extra chars at end, such as:
In each case, the document SHOULD end with that first '}' but there are extra chars. Can't work out how that gets there...I can't see anything obvious like a buffer that is being reused. I've tried fiddling with writeGebReport/readGebReport, eg:
Such Heath Robinson-ish horridness! I'm trying to put aside my shame/sense of embarrasment, I'm trying anything that might affect synchronisation...;-) I also note that each time this happens, some entry/entries are missing...I can see an image has been taken, but not referenced in the string that is being parsed. I can compensate for 1. by throwing away the extra chars and re-parsing the resulting string. |
Do you still see this issue if you ask Gradle to run the tests without any concurrency? |
I use gradle:
I run tests in batches, with the same test code each time, but different parameters for each batch. IE:
All my tests are passing. They report no errors.
The problem is: when I run my tests (via "gradle test") a whole batch may or may not suffer the following:
in this case, no per-spec html files are produced and the index file shows no tests run.
It is apparently random as to when a batch will suffer the issue. If I run "gradle test" 5 times back-to-back (with "gradle clean" between each run) I may see:
on run 1 both batches have good reports made;
on run 2 batch 1 has a good report but batch 2 suffers the issue;
on run 3 batch 1 suffers the issue but batch 2 has a good report generated;
on run 4 batch 1 has a good report but batch 2 suffers the issue;
on run 5 both batches have good reports made
The reports are very nice when they are made (thank you for the project, BTW!).
I have set:
Each batch has a separate directory, so I set '_batch1', '_batch2' as appropriate for each batch.
I also have resources/META-INF/services/com.athaydes.spockframework.report.IReportCreator.properties:
I note when a problem occurs, the 'aggregated_report.json' is completely empty.
More detailed logging:
Any thoughts/suggestions gratefully accepted.
The text was updated successfully, but these errors were encountered: