Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
lushu opened this issue Mar 6, 2023 · 0 comments

Comments

@lushu
Copy link

lushu commented Mar 6, 2023

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant