How to test a WPF user interface?

As for the testing itself, you’re probably best off using the UI Automation framework. Or if you want a more fluent and wpf/winforms/win32/swt-independent way of using the framework, you could download White from Codeplex (provided that you’re in a position to use open source code in your environment). For the gotchas; If you’re trying to … Read more

Testing an Entity Framework database connection

Are you just wanting to see if the DB connection is valid? If so take a look at the using (DatabaseContext dbContext = new DatabaseContext()) { dbContext.Database.Exists(); } http://msdn.microsoft.com/en-us/library/gg696617(v=vs.103).aspx and for checking if a server machine is up, DB server or web services server , try this: public PingReply Send( string hostNameOrAddress ) http://msdn.microsoft.com/en-us/library/7hzczzed.aspx

Jest spyOn function called

You were almost done without any changes besides how you spyOn. When you use the spy, you have two options: spyOn the App.prototype, or component component.instance(). const spy = jest.spyOn(Class.prototype, “method”) The order of attaching the spy on the class prototype and rendering (shallow rendering) your instance is important. const spy = jest.spyOn(App.prototype, “myClickFn”); const … Read more

Unit testing a python app that uses the requests library

It is in fact a little strange that the library has a blank page about end-user unit testing, while targeting user-friendliness and ease of use. There’s however an easy-to-use library by Dropbox, unsurprisingly called responses. Here is its intro post. It says they’ve failed to employ httpretty, while stating no reason of the fail, and … Read more