hbenl / vscode-jasmine-test-adapter

Jasmine Test Adapter for the VS Code Test Explorer
MIT License
20 stars 20 forks source link

Help needed: JasmineAdapter failed to receive big suites from LoadTestsReporter #67

Open lushu opened 1 year ago

lushu commented 1 year ago

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!