SwiftLint icon indicating copy to clipboard operation
SwiftLint copied to clipboard

Fix all tests failing on Windows

Open SimplyDanny opened this issue 2 months ago • 4 comments

#6351 is a prerequisite. The few other tests failing (if still any) can be addressed in the scope of this issue.

Once that's achieved, the build workflow introduced in #6350 shall be extended to ensure all tests remain stable.

SimplyDanny avatar Nov 21 '25 15:11 SimplyDanny

Maybe this update helps. f48dff33c16e.zip

miazinuno092-afk avatar Nov 21 '25 15:11 miazinuno092-afk

https://github.com/realm/SwiftLint/pull/6354 should partially address this by fixing the GeneratedTests test suite

compnerd avatar Nov 21 '25 17:11 compnerd

From local testing, I am seeing the FileSystemAccessTests and IntegrationTests as the failing suites currently. The underlying issue for these are:

  1. FSR mishandling
  2. Incomplete glob support on Windows

For the FSR mishandling, we cannot use .path on URL ever. We need to go through fileSystemRepresentation. The glob support on the other hand is a bit more tricky and will require hand-rolling a glob parser to get that to parity.

compnerd avatar Nov 21 '25 17:11 compnerd

https://github.com/realm/SwiftLint/pull/6358 takes care of testValidRemoteChildConfig which abort()'s interrupting the test process

roman-bcny avatar Nov 25 '25 00:11 roman-bcny