nunit-vs-adapter icon indicating copy to clipboard operation
nunit-vs-adapter copied to clipboard

Make a Visual Mark on Test Results

Open feinstein opened this issue 9 years ago • 11 comments

The native Visual Studio Tests have a check mark on everything related to that test, for example:

captura_de_tela_031616_041224_am

I don't know if it's possible to mimic this functionality, but it will be a nice addition.

feinstein avatar Mar 16 '16 07:03 feinstein

You mean like this ? image

OsirisTerje avatar Mar 16 '16 20:03 OsirisTerje

With the Test attribute it works....but not with the TestCase attribute:

captura_de_tela_032416_053905_pm

Even though the Test Explorer does show the completed successful tests with a check mark:

captura_de_tela_032416_054043_pm

feinstein avatar Mar 24 '16 20:03 feinstein

Does the explorer window show the correct file location for the test method? If not, there may be something we can fix. But if it does, that means we are passing the correct info to VS and it's basically up to them to do something with it. :-(

CharliePoole avatar Mar 24 '16 20:03 CharliePoole

Yes, I think it is showing the right file location...can you make a simple test like mine and see if this isn't something isolated?

feinstein avatar Mar 24 '16 21:03 feinstein

I have verified this behavior using the NUnit 3 adapter rather than NUnit 2, which seems to indicate it's just how it works with VS.

The behavior makes a certain amount of sense. If a method is parameterized and has twenty cases, potentially having differing results, then what would be shown?

I'd like to close this as notabug if nobody objects.

CharliePoole avatar Mar 24 '16 22:03 CharliePoole

Well, I think if it has 20 cases, and all of them pass, so there should be a green check mark...if one fails, even if the others pass, there should be a red warning....Just like it is in the Test Explorer.

feinstein avatar Mar 24 '16 22:03 feinstein

Perhaps, but definitely not in our control.

CharliePoole avatar Mar 24 '16 22:03 CharliePoole

I see....do you have a channel of communication with Microsoft to raise this issue with them? I think this will be a nice addition.

feinstein avatar Mar 24 '16 23:03 feinstein

@OsirisTerje can you try? They don't talk to me for sure.

CharliePoole avatar Mar 24 '16 23:03 CharliePoole

I'll talk with them again, but I've done so earlier. The indicator is not part of the test explorer itself, but is a CodeLens "extension" they have. Not sure how it is related, but I'll ping them again.

OsirisTerje avatar Mar 26 '16 21:03 OsirisTerje

Thanks @OsirisTerje

If this turns out to be something they don't expect to change anytime soon, I think we should just close it as not our bug.

CharliePoole avatar Mar 26 '16 22:03 CharliePoole