xunit / xunit/xunit

Support Parameterised Test Fixtures

Open
#2,150 33 comments 12 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Core framework Feature
Dominant language
C#
Stars
4.6k
Forks
846
Avg merge
1d 8m
Merged PRs (30d)
3

Description

XUnit should implement this feature https://docs.nunit.org/articles/nunit/writing-tests/attributes/testfixture.html#parameterized-test-fixtures in an XUnit way.

Specifically https://docs.nunit.org/articles/nunit/writing-tests/attributes/testfixturesource.html

Here is the my implementation using NUnit 3:
https://github.com/Sauceforge/Saucery

I want to use utilise a similar mechanism in XUnit (which I believe it doesn't yet have, hence this feature request) to write a SauceryX NuGet package

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 comparing the NUnit parameterized fixture and TestFixtureSource documentation with the linked Saucery implementation. Then inspect xUnit's existing fixture and test-discovery behavior to determine where an xUnit-specific mechanism would fit. Done means parameterized fixtures can be expressed and discovered in xUnit well enough to support the proposed SauceryX package.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
testing
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.