microsoft / microsoft/RecursiveExtractor
Clean up tests using DynamicData
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 220
- Forks
- 35
- Avg merge
- 20d 1h
- Merged PRs (30d)
- 1
Description
Tests could be simplified by consolidating the many copies of the test data rows, also simplifying adding new tests for new formats. See https://learn.microsoft.com/en-us/visualstudio/test/how-to-create-a-data-driven-unit-test?view=vs-2022#member-data-driven-test.
Contributor guide
No contributing guide indexed for this repository
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.
Research direction
Start by locating the tests that contain repeated test-data rows, then read the linked Visual Studio DynamicData documentation, especially the member-data-driven test section. Done means the duplicate rows are consolidated, adding data for a new format is simpler, and the test suite still passes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- testing
- Issue type
- Refactor
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100