Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Idiomatic Test Organization

Open
#477 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
30/100
Issue type
Refactor
Clarity
Mostly clear
Activity status
Stale
Tech stack
csharp
Domain
testing

Research direction

Start by reviewing pull request 476 and the repository's current source and test layout. Identify each assembly under test and its existing test project, then compare the organization against the issue's four requested patterns. Done means the test projects, namespaces, and integration-test boundaries consistently reflect those patterns.

Written by the indexing model from the issue text.

Description

The new code organization in https://github.com/microsoft/OSSGadget/pull/476 paves the way for this repository to move towards more idiomatic .NET unit tests. For example:

  • source and tests in different directories
  • one test project for each assembly under test (i.e., Shared.CLI.Tests for the Shared.CLI project and Shared.Lib.Tests for the Shared.Lib project.)
  • test code organization mirroring the assembly under test (e.g., Shared.CLI.Tests.Tools.DefoggerToolTestsrather than Microsoft.CST.OpenSource.Tests.DefoggerTests`)
  • isolating integration tests to a separate test assembly
Dominant language
C#
Stars
372
Forks
57
PR merge metrics
No merged PRs in 30d

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

  • Ships a Dockerfile or Docker Compose file
  • No pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from microsoft/OSSGadget

All issues in microsoft/OSSGadget

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.