I suggest you ...

Goto TestCaseSourceAttribute's source from Tests window.

I would be nice if it was possible to opt-in to change behavior of the context menu "Go to selected test" in that way:

With NUnit, one can write:

public static IEnumerable<TestCaseData> MyTestCaseSourceMethodName()
{
// return test cases...
}

[TestCaseSource("MyTestCaseSourceMethodName")]
public void MyTest(int someArgument)
{
// do test...
}

The test case factory method can be an separate (static) class.
In my case, I have a test with several dozens of test cases.

When a test fails, I can easily go to the failing test implementation, but I cannot easily find the culprit test case.

2 votes
Sign in
(thinking…)
Sign in with: Facebook Google
Signed in as (Sign out)

We’ll send you updates on this idea

Eric shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

2 comments

Sign in
(thinking…)
Sign in with: Facebook Google
Signed in as (Sign out)
Submitting...
  • Craig Shea commented  ·   ·  Flag as inappropriate

    Wow, this would be nice, but not sure it's possible. To do this, it would need to most likely rely on a lot of internal behavior of Nunit, which could change at any time. And since NCrunch is really test framework agnostic, it really doesn't want to take a dependency on internal test framework behavior.

    But I hear you, this would be really nice if it were possible.

Feedback and Knowledge Base