Do you have a standard 'Help' menu that includes a way to run your unit tests?

Last updated by TiagoAraujo about 4 years ago.See history

This rule has been archived
Archived Reason: This applies to WinForms applications. Modern desktop applications should follow MVVM or MVC - in which case the viewmodel/controller is unit testable on every commit.

Your standard help menu should include an option to run your Unit Tests. Everybody knows the importance of Unit tests for the middle tier. However, Unit Tests are also important to capture problems that occur on other peoples' machines so that users can perform a quick check when a product is not behaving correctly. This is important for troubleshooting during support calls and enables your customers to do a Health Check on the product.

And yes, there are many tests that can be written that will pass on the developers PC - but not on the users PC. e.g. Ability to write to a directory, missing dlls, missing tables in the schema etc.

Note: Adding this option requires you to include NUnit in your setup.exe (See Include all the files needed in our Wise Standard).

Figure: Standard Help menu should give you an option to Run Unit Tests to check the users' environment (Good)

Figure: Obviously the red indicates that there is a problem with a Unit Test (Good)

We have a rule Do you know the Seven items every Help menu needs?

We open source. Powered by GitHub