nunit / nunit/nunit

Refactor Platforms Attribute to use Enums

Open
#3,765 23 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

awaiting:discussion
Dominant language
C#
Stars
2.6k
Forks
766
Avg merge
1d 3h
Merged PRs (30d)
24

Description

The Platforms attribute currently takes a string to specify the platforms that it supports. These are error prone and sometimes hard to guess. Switch to passing in a flags enum (so they can be or'd together).

  • Evaluate minimum OS's, frameworks, etc that run .NET 4.5 and remove the others
  • Name the enums after the most common supported string to make search/replace easier?
  • Deprecate or remove the string constructor and support?
  • Add new OS's and frameworks

Contributor guide

Open the 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.

Research direction

Start by locating the Platforms attribute and its current string-based support in the NUnit Framework source. Review the issue's open decisions about supported operating systems, frameworks, enum naming, compatibility, and deprecation, then confirm the design with maintainers before implementation.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
testing-qa
Issue type
Refactor
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.