Latest Unit Testing stories

Noninvasive Unit Testing in ASP.NET MVC4 – A Microsoft Fakes Deep Dive(www.richonsoftware.com)

submitted by czyzerczyzer(55) 10 days, 17 hours ago

A lot of today’s unit testing technologies require significant invasive code changes in order to unit test appropriately. In this post Microsoft Fakes in VS11 is used to apply noninvasive testing techniques to test a default "Internet Application" MVC 4 project making absolutely no code changes at all. read more...

1 comment |category: |Views: 171

tags: another

Using Shims in Visual Studio 11 to test untestable code.(www.codewrecks.com)

submitted by alkampferalkampfer(1873) 1 month ago

New upcoming version of Visual Studio, codename VisualStudio11 contains a library to isolate call to static and non-virtual function to simply testing of classes written without unit testing in mind. read more...

add a comment |category: |Views: 175

tags: another

Running multiple browsers in one test run with Selenium(deanhume.com)

submitted by deanomachinodeanomachino(764) 1 month, 3 days ago

The beauty of Selenium is that it allows you to test your UI against all of the common browsers out there at the moment. Writing the code to test for a test scenario is quick and easy and getting up and running with Selenium can be done in a matter of minutes. Selenium works alongside Nunit and also nicely slots in with your automated build environment. read more...

add a comment |category: |Views: 104

tags: another

Comparing Microsoft Moles in VS2010 to Microsoft Fakes in VS11(www.richonsoftware.com)

submitted by czyzerczyzer(55) 1 month, 5 days ago

Provides a detailed comparison between Microsoft Moles in VS10 and Microsoft Fakes in VS11 in regards to using Moles for “future proofing” new testing initiatives and perhaps to bridge the gap between today’s testing and tomorrow’s tools. read more...

1 comment |category: |Views: 158

tags: another

Writing integration tests for ASP .NET with Selenium 2.0 – Part 2(nizarnoorani.com)

submitted by noorani786noorani786(342) 1 month, 11 days ago

This is the second in a series of posts on writing integration tests for ASP .NET using the Selenium 2.0 web application testing system. In this post, I’ll go over how to write and run C# test-cases using Selenium 2.0. I’ve also provided a base-class that contains helper methods for repetitive stuff like typing inside input fields. The base-class also speeds up the tests by re-using the same driver and preserving logins across tests. read more...

add a comment |category: |Views: 111

tags: another

Using Stubs and Shims to Test with Microsoft Fakes in Visual Studio 11(www.richonsoftware.com)

submitted by czyzerczyzer(55) 1 month, 20 days ago

Microsoft has released Microsoft Fakes, a full featured mocking framework built into Visual Studio 11, which can "shim" any .NET method, including non-virtual and static methods in sealed types. This post digs into those features a little deeper and their general implications. read more...

add a comment |category: |Views: 24

tags: another

Writing integration tests for ASP .NET with Selenium – Part 1(nizarnoorani.com)

submitted by noorani786noorani786(342) 1 month, 16 days ago

The first in a series of blog posts that will discuss how to setup, configure and write integration tests for ASP .NET using Selenium. read more...

2 comments |category: |Views: 215

tags: another

Migrating from NUnit to xUnit(www.tomdupont.net)

submitted by tduponttdupont(1259) 1 month, 19 days ago

If you are currently using NUnit to write your unit tests, then it is not at all difficult to migrate to using xUnit. The philosophical difference between the two is simply this: with xUnit you need to think of your tests as objects, rather than of methods. Here is a visual representation of equivalent test setups between NUnit and xUnit... read more...

2 comments |category: |Views: 198

tags: another

From Legacy to Dependency Injection(blogs.telerik.com)

submitted by KodefuGuruKodefuGuru(2818) 1 month, 22 days ago

We’ve all encountered tightly-bound code, and our first instinct is to correct it. However, there are only so many hours in a sprint, and it’s not always convenient to go on a large refactoring spree when the backlog is filling up. With JustMock, you can still ensure the code works, and it will set you up for the cleaning that will take place at a ... read more...

add a comment |category: |Views: 266

tags: another

Test-Driven and Test-First Development » Noam Kfir(noam.kfir.cc)

submitted by yuvmazyuvmaz(44) 2 months, 16 days ago

A description of the essence of TDD, and why you can write tests after code and still call it TDD. read more...

add a comment |category: |Views: 126

tags: another

Customizing Project Level Templates in Visual Studio Unit Test Framewo(www.dotnet-tv.com)

submitted by martinigmartinig(568) 2 months, 15 days ago

The Visual Studio Unit Test framework is the only test framework provided out of the box with ASP.NET MVC 3. This article shows you how to create and install custom test project templates and view engine options. read more...

add a comment |category: |Views: 10

tags: another

How to mock DateTime.Now in unit tests(catchblock.com)

submitted by tparvitparvi(75) 2 months, 23 days ago

Different ways to mock DateTime.Now in unit tests read more...

2 comments |category: |Views: 292

tags: another

JustCode and QUnit means easy JavaScript unit testing in Visual Studio(blogs.telerik.com)

submitted by KodefuGuruKodefuGuru(2818) 2 months, 26 days ago

As we showed in the Jasmine blog postJustCode provides seamless integration of JavaScript unit testing inside Visual Studio. JustCode supports two of the most widely used JavaScript unit testing frameworks – Jasmine and QUnit, allowing you to leverage the one that better fits your needs or both. Today’s post covers the support of QUnit JavaScript unit tests in JustCode. read more...

add a comment |category: |Views: 130

tags: another

Sharing a WebDriver across TestFixtures(www.tomdupont.net)

submitted by tduponttdupont(1259) 3 months, 16 days ago

WebDriver (also known as Selenium 2.0) is a web testing tool that is both useful and easy, which is a very rare find. If you are doing web development with ASP.NET, you need to take 30 minutes of your time and go try out WebDriver. That is all the time it will take to get you hooked. To launch a browser you need only new up a Driver object for that browser. I used to create a new Driver in my TestFixtureSetup, and then close and dispose of that in the testFixtureTearDown. However now that Firefox does not persist my windows login credentials it can be very frustrating to have to log back in for every test fixture. A solution to this problem is simply to share a single WebDriver across multiple TestFixtures. Fortunately NUnit's SetUpFixture makes this very easy to do. read more...

1 comment |category: |Views: 40

tags: another

NCrunch(geeklyeverafter.blogspot.com)

submitted by brunomarquesbrunomarques(284) 3 months, 20 days ago

Not so often, but every once in a while a new great development tool comes around. This is one of those times. Meet NCrunch. A TDD tool that will speed up your way of doing unit tests read more...

add a comment |category: |Views: 22

tags: another

Testing DI bootstrappers(jclaes.blogspot.com)

submitted by JefClaesJefClaes(650) 3 months, 22 days ago

While your Dependency Injection bootstrappers - being responsible for gluing your application together - are a vital part of your application, they are seldom put under test. I don't see any reason why they shouldn't be though. The cost of these tests is negligible, definitely if you compare it to the cost of the often catastrophical outcome of bugs in your bootstrappers. read more...

add a comment |category: |Views: 152

tags: another