microsoft / microsoft/OSSGadget

Idiomatic Test Organization

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

Nobody has claimed this yet.

Dominant language
C#
Stars
371
Forks
58
PR merge metrics
No merged PRs in 30d

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

Contributor guide

No contributing guide indexed for this repository

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.

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.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.