Tests fail on Windows
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 78/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- csharp
- Domain
- operating-systems, testing-qa
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.
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
- Dominant language
- C#
- Stars
- 553
- Forks
- 135
- Avg merge
- 20h 58m
- Merged PRs (30d)
- 6
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from microsoft/component-detection
-
Difficulty 3/5 1-2 days Newbie friendliness 76/100
microsoft/component-detection#1875 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 52/100
microsoft/component-detection#1865 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 78/100
microsoft/component-detection#1864 ·
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
microsoft/component-detection#1859 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 55/100
microsoft/component-detection#1856 · 1 reaction ·
All issues in microsoft/component-detection
Similar issues
-
type/automation type/tech-debt
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
t/bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
ci-failure-cause test-failure
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
area:auth FE mvp P3
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
klasolsson81/jobbliggaren#1788 ·