vscode-jasmine-test-adapter
vscode-jasmine-test-adapter copied to clipboard
Help needed: JasmineAdapter failed to receive big suites from LoadTestsReporter
ENV:
- Chip: Apple M1 Pro
- OS: macOS 13.2.1
- Node: tested with both v16.14.2 and v18.14.2
- VSCode: Version: 1.75.1 (Universal)
- Test Explorer UI v2.21.1
- Jasmine Test Explorer v1.8.2
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!