When the suite is too large (JSON string over 8192 bytes), the JasmineAdapter couldn't get the suite object from LoadTestsReporter.
If there are multiple test files, trying to send the oversized suite would cease the JasmineAdapter immediately and abandon all other unfinished load tasks. This makes the Test Explorer only to show random partial tests.
By shortening the project file path or the test description, the suite can be shown properly with the same tests as long as the JSON string is less than 8192.
I found a thread about that macOS inserted a line breaker after 8192 bytes which corrupted the JSON. It looks like the reason, however I do not know how to fix it here. Could you please have a look? Thank you!
ENV:
Problem:
When the suite is too large (JSON string over 8192 bytes), the JasmineAdapter couldn't get the suite object from
LoadTestsReporter
.If there are multiple test files, trying to send the oversized suite would cease the
JasmineAdapter
immediately and abandon all other unfinished load tasks. This makes the Test Explorer only to show random partial tests.By shortening the project file path or the test description, the suite can be shown properly with the same tests as long as the JSON string is less than 8192.
I found a thread about that macOS inserted a line breaker after 8192 bytes which corrupted the JSON. It looks like the reason, however I do not know how to fix it here. Could you please have a look? Thank you!