Sebazzz / NUnitTestOrdering

Allows to use hierarchical (integration) test ordering in NUnit and supports workflow based testing
MIT License
5 stars 1 forks source link

Possible to run tests in Visual Studio to debug using test order from NUnitTestOrdering. #12

Open AutomationSifu opened 5 years ago

AutomationSifu commented 5 years ago

Happy New Year!

I know you've recommended using NUnit console to run tests, but is there a way using your library to still run tests to debug them within Visual Studio?

I'm trying to debug a test but I want it to run in the order I created using the EnableTestOrdering file.

It's quicker and more efficient debugging tests using Visual Studio.

Thanks!

Sebazzz commented 5 years ago

It should be possible from the Visual Studio Test Explorer, which queries the NUnit directly. It won't work from Resharper.

AutomationSifu commented 5 years ago

Thanks for your response! Just to confirm I understand what your saying. Would the order set it in the EnableTestOrdering.cs file be taken into account in Visual Studio or just an order set for each file using the NUnit order attribute?

Sebazzz commented 5 years ago

It should take the order into account. 👍

Met vriendelijke groet, Sebastiaan Dammann


Van: AutomationSifu notifications@github.com Verzonden: maandag, januari 14, 2019 5:57 PM Aan: Sebazzz/NUnitTestOrdering CC: Sebastiaan Dammann; Comment Onderwerp: Re: [Sebazzz/NUnitTestOrdering] Possible to run tests in Visual Studio to debug using test order from NUnitTestOrdering. (#12)

Thanks for your response! Just to confirm I understand what your saying. Would the order set it in the EnableTestOrdering.cs file be taken into account in Visual Studio or just an order set for each file using the NUnit order attribute?

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FSebazzz%2FNUnitTestOrdering%2Fissues%2F12%23issuecomment-454078658&data=02%7C01%7C%7C5066bffaaa6b4e3a7d7308d67a415132%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636830818275929597&sdata=hfNbKPiUwjjepJO99iwxlRAk2r5gT%2BDMhYvolhVArg8%3D&reserved=0, or mute the threadhttps://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FABXCsRZWMnnapCWphF5BQ3STdf2QEh1tks5vDLbigaJpZM4Z-1Tf&data=02%7C01%7C%7C5066bffaaa6b4e3a7d7308d67a415132%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636830818275929597&sdata=RFNJNM70rtRYt2p97Psnn01dUtRfEvrx2WXq4KPAczo%3D&reserved=0.

AutomationSifu commented 5 years ago

Good to know! Is there a configuration or a specific way to run the tests in Visual Studio for the NUnitTestOrdering run order to be taken into account?

At the moment I'm in Visual Studio. Test Explorer is grouped by traits.

Should the grouping of the test in EnableTestOrdering.cs show up as a tree in Visual Studio?

Thanks!

Sebazzz commented 5 years ago

I'm not sure. Please try it and let me know what you find.

AutomationSifu commented 5 years ago

Hi Sebazzz!

Can you provide some feedback on how other users have used your library?

Do they only use it in conjunction with Nunit Console or another external test runner outside of Visual Studio?

I just want to make sure I'm using the library within the context of which it was created.

Thanks!