component-detection icon indicating copy to clipboard operation
component-detection copied to clipboard

Tests fail on Windows

Open RodneyRichardson opened this issue 8 months ago • 1 comments

Three tests in Microsoft.ComponentDetection.Common.Tests are failing on Windows 11 using VS2022.

Looks like it should be skipped on Windows, as per other tests in the class

  • DockerServiceTests.DockerService_CanPingDockerAsync

These look like they're intended to be skipped on Windows as thay have a SkipTestOnWindows attribute, but also have a redundant TestMethod attribute.

  • SafeFileEnumerableTests.GetEnumerator_CallsSymlinkCode
  • SafeFileEnumerableTests.GetEnumerator_DuplicatePathIgnored

RodneyRichardson avatar May 23 '25 13:05 RodneyRichardson

DockerServiceTests.DockerService_CanPingDockerAsync requires docker be installed and running, so that should be made to instead return inconclusive or conditionallly skipped on no-docker available. I agree with the other removals of TestMethod

FernandoRojo avatar Jun 02 '25 19:06 FernandoRojo