Automated UI testing in ASP.NET MVC5 using Selenium WebDriver

I would like to show you how easy it is to use unit test in Visual Studio and Selenium Web Driver to make automated UI test. The Plan The plan is simple: host your app, investigate given page, make assertions. The first problem is how to host our application from inside a unit test? I want to host app using current code not from external source which is already delopyed – post …

By Piotr on (tags: asp.net 4, mvc 5, Unit test, categories: code)

How serious are you about unit tests?

We all know and love them, though not everyone (me included) likes to write them. I do unit tests as often as possible, but still need to ‘will’ myself into writing them. Don’t get me wrong, I love to have them, just not the process of writing them. I mean – init, act, assert – not something I’d call rocket science; boring most of the time. But I’ve always been amazed by people…

By on (tags: momentjs, Unit test, categories: None)

Create unit test option is back

Few months ago I wrote here about the workaround for bringing back “Create unit test” option in Visual Studio 2012. Finally guys from Microsoft added this option to the Visual studio 2012 and 2013. More about new “Create unit test” option and natively supported test frameworks you can find on this video. To have that feature in Visual Studio you need to add the Unit test genera…

By Mirek on (tags: Unit test, categories: tools)

Bringing “Create Unit Tests…” option back

Since I stared using Visual Studio 2012 I noticed a lack of quite helpful and commonly used (I guess) feature which is Create Unit Test context menu option. It turned out that this is still there… …but hidden from the user. Going through the jungle of VS customization options you can find it and make it visible in context menu. But there is an easier and more elegant way descri…

By Mirek on (tags: Unit test, Visual Studio 2012, categories: tools)