Run shared transport behavior tests on every platform

Open
#1,917 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

@bghgary is already working on this.

Since Nov 4, 2026.

Assessment

Difficulty
3/5
Estimated time
1-3 hours
Newbie friendliness
68/100
Issue type
Refactor
Clarity
Clearly specified
Activity status
Active
Domain
testing

Research direction

Start with Tests/UrlRequestErrorReporting.cpp in the UrlLib repository and locate the SKIP_WITHOUT_TRANSPORT_ERROR_DETAIL macro definition plus each of the six tests it guards. Split each test so the shared checks (failure status, response state, request reuse, cancellation timeout) run everywhere while only error-symbol/error-code assertions stay behind the platform guard, paying attention to MissingAppResourceReportsError being Apple-only. Then grep the test suite for remaining platform guards repeating the same pattern. Done means the shared assertions execute on Windows and the suite still passes on the other backends.

Written by the indexing model from the issue text.

Description

[Filed by Copilot on behalf of @bghgary]

Several existing transport tests skip entire platforms rather than only assertions tied to platform-specific diagnostics.

In UrlRequestErrorReporting.cpp, SKIP_WITHOUT_TRANSPORT_ERROR_DETAIL skips six tests entirely on Windows. This suppresses shared status, reuse, and cancellation checks along with diagnostic assertions. For example, AbortInterruptsInFlightRequest never checks whether cancellation completes within its timeout on Windows. MissingAppResourceReportsError is separately Apple-only.

Please separate shared behavior checks from backend-specific diagnostic expectations:

  • Run failure-status, response-state, request-reuse, and cancellation checks on every supported backend.
  • Keep platform-specific error-symbol and error-code assertions separate, so unsupported diagnostics do not suppress shared checks.
  • Audit the remaining platform guards for the same pattern.

These exclusions predate the response-body fixes in PR #38; this issue tracks the broader existing coverage gap.

Dominant language
C++
Stars
931
Forks
169
Avg merge
2d 17h
Merged PRs (30d)
66

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from BabylonJS/BabylonNative

All issues in BabylonJS/BabylonNative

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.