microsoft / microsoft/component-detection
Tests fail on Windows
- Dominant language
- C#
- Stars
- 553
- Forks
- 135
- Avg merge
- 20h 58m
- Merged PRs (30d)
- 6
Description
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
Contributor guide
Research direction
Locate Microsoft.ComponentDetection.Common.Tests and search for DockerServiceTests.DockerService_CanPingDockerAsync and the two SafeFileEnumerableTests methods. Compare their attributes with other tests in the class, then run the affected tests on Windows; done means the intended tests are skipped on Windows and the test suite no longer fails there.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- operating-systems, testing-qa
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Active
- Clarity
- Clearly specified
- Newbie friendliness
- 78/100