Support tests that are not methods

Bug #1177434 reported by Ian Davis
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
NUnit Test Adapter
Triaged
Wishlist
Unassigned

Bug Description

I have written an addin which allows me to write field tests instead of tests being methods. I can navigate to where the assertions failed just fine due to console output and stack traces, but there is no source information available for passed tests or failures (in the way NUnit supplies). I believe the issue may be here: http://bazaar.launchpad.net/~nunit-vs-team/nunit-vs-adapter/trunk/view/head:/src/NUnitTestAdapter/NavigationData.cs

It calls:

var method = definingType.GetMethod(methodName);
if (method == null) return null;

Which will always return null for my tests. Would changing the call to definingType.GetMember work to support both methods and fields?

What about creating another function which can locate non-methods tests?

Thank you,

Ian Davis

Tags: github
Changed in nunit-vs-adapter:
milestone: none → 2.0
importance: Undecided → Wishlist
Revision history for this message
Charlie Poole (charlie.poole) wrote :

Moved to https://github.com/nunit/nunit-vs-adapter/issues/4 and marked Won't Fix here.

Changed in nunit-vs-adapter:
milestone: 2.0 → none
status: New → Won't Fix
Changed in nunit-vs-adapter:
status: Won't Fix → Triaged
tags: added: github
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.