Upcoming Unit Testing stories

Shim and InstanceBehavior fallthrough to isolate part of the SUT(www.codewrecks.com)

submitted by alkampferalkampfer(1873) 16 days, 9 hours ago

Thanks to the new Shim Library in Visual Studio11 it is possible to isolate part of the SUT to write Unit Test for difficult to test classes. read more...

add a comment |category: |Views: 4

tags: another

Using SpecsFor.Mvc - Reading Data(trycatchfail.com)

submitted by Matt_TCFMatt_TCF(946) 1 month, 6 days ago

This is part three of my series on Using SpecsFor.Mvc to write awesome automated acceptance tests for your ASP.NET MVC application. In this post, I’ll show you how to create tests that verify expected data is displayed on a page by leveraging the MvcDisplayTemplates project with SpecsFor.Mvc. read more...

add a comment |category: |Views: 5

tags: another

xUnit Theory, the Data Driven Unit Test(www.tomdupont.net)

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

A good set of unit tests often end up reusing the same code with varied inputs. Rather than copy and paste that test code over and over, we can use the pattern of data driven unit tests to help streamline our test fixtures. This is the practice of having a single test definition be invoked and count as multiple tests at run time. This also enables us to do other dynamic things, such as configuring our unit tests from external sources. :) I love NUnit, but it does not offer data driven unit tests. I frequently use MSTest, but it's data driven tests inconveniently require you to define a DataSource. Meanwhile xUnit offers several lightweight and simple options for defining data driven tests, which it refers to as theories. read more...

add a comment |category: |Views: 4

tags: another

To TDD or Not To TDD? That is the Discussion.(nizarnoorani.com)

submitted by noorani786noorani786(342) 2 months, 10 days ago

My evolution to TDD and reasons why I follow it... read more...

add a comment |category: |Views: 14

tags: another

Quick-and-Easy Database Integration Tests with SpecsFor(trycatchfail.com)

submitted by Matt_TCFMatt_TCF(946) 2 months, 19 days ago

SpecsFor makes it very easy to bolt on your own conventions, create your own base classes, and extend its behavior to support your specific testing needs. I’m working on a project that’s built on LINQ to SQL, and I wanted to start creating integration tests around our stored procedures and views. Here’s the base class I made to handle establishing a database connection, loading in “seed data,” and then cleaning up after each set of specs once they’re finished. read more...

add a comment |category: |Views: 7

tags: another

JustCode and Jasmine (BDD JavaScript testing framework) play together(blogs.telerik.com)

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

With every new release of JustCode we at Telerik are committed to providing you with the best tool for writing better, faster and error free code with ease. That of course includes testing it. With the latest and greatest version of JustCode we added support for two of the widely and most commonly used JavaScript testing frameworks out there - Jasmine and QUnit. read more...

add a comment |category: |Views: 5

tags: another

Continuous Testing 2.0 is here(ox.no)

submitted by havardhavard(4) 3 months, 2 days ago

Continuous Testing 2.0 has been released, enabling an even better, faster TDD workflow. Lots of improvements and new features including Smart Test Run Prioritization and early abortion of runs. read more...

add a comment |category: |Views: 9

tags: another

An introduction to unit testing(leoncullens.nl)

submitted by AvalaxyAvalaxy(214) 3 months, 3 days ago

In this series of blog posts I will try to give the reader a good understanding of unit testing and the most important things that are associated with it. Nowadays unit testing is a very common practice that every software developer should know about. In this series of articles you will read about the purpose of unit testing, test-first (TDD), building testable software architectures and of course the unit testing itself. My samples are written in C# 4.0 using ASP.NET MVC3, Ninject, Moq and MSTest, but I will provide links and information about other frameworks as well. The principles of unit testing are pretty much all the same on other platforms, so even if you are a Java or PHP programmer you can follow this guide. read more...

add a comment |category: |Views: 11

tags: another

Browser Specific TestFixtures Sharing Tests(www.tomdupont.net)

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

How to share Tests across browser specific TestFixtures with WebDriver. When writing a unit test to test a webpage, you will want to duplicate that test against multiple browsers. How do we do accomplish this feat? Inheritance! read more...

add a comment |category: |Views: 5

tags: another

Coded UI Tests : Property “ReadOnly” cannot be retrieved ...(www.jonathanantoine.com)

submitted by jmix90jmix90(570) 4 months, 16 days ago

Did you ever encounter this error while trying to retrieve a property value from an AutomationElement ? I did ! Don’t worry, there is always a work-around, and I’ve found one. In this post, we’ll dig a little more into this issue and give a little example of the “Coded UI Tests” fun read more...

add a comment |category: |Views: 4

tags: another

Status Update on SpecsFor.Mvc(trycatchfail.com)

submitted by Matt_TCFMatt_TCF(946) 4 months, 24 days ago

SpecsFor.Mvc is an integration testing framework for ASP.NET MVC applications. It enables you to write integration tests that are strongly-typed, refactor-friendly, and that run under the testing framework of your choice, all while leveraging your existing unit test writing skills. SpecsFor.Mvc is a work-in-progress, so please take a moment to give me some feedback on how the API is shaping up. read more...

add a comment |category: |Views: 5

tags: another

Generate Return Values Using Lambdas in Moq(www.blackwasp.co.uk)

submitted by BlackWaspBlackWasp(4212) 5 months, 4 days ago

Mock objects and stubs created using the Moq framework are generally used to inject dependencies with expectations that define fixed results. For more complex scenarios, lambda expressions can be used to generate results based on provided arguments. read more...

add a comment |category: |Views: 5

tags: another

Two Things to Make Testing Fun(futureofcoding.com)

submitted by rafirafi(87) 5 months, 26 days ago

How many of you actually enjoy writing tests, probably not a lot, right? Even though you know testing is important. For some of us, it just doesn’t feel right to spend time on creating tests than working on our world class application. I will not argue the merits of testing here, but I will tell you two things that will make testing fun: read more...

1 comment |category: |Views: 5

tags: another

Chutzpah 1.3.0 Released(matthewmanela.com)

submitted by jemtsjemts(591) 6 months, 7 days ago

A new release of Chutzpah - A JavaScript test runner. This release adds support for the Jasmine test framework. read more...

add a comment |category: |Views: 2

tags: another

the recorder encountered a wrong control while recording the last acti(www.jonathanantoine.com)

submitted by jmix90jmix90(570) 6 months, 9 days ago

One more quick post on Coded UI tests recording issue. Today, the coded UI test builder tool said to me “The recorder encountered a wrong control while recording the last action.” ! After some search in my app, I found out that it’is related to a ScrollViewer in a TabControl. In this post we’ll see how I solved it… read more...

add a comment |category: |Views: 3

tags: another

Using the InternetExplorerDriver for WebDriver(www.tomdupont.net)

submitted by tduponttdupont(1259) 7 months, 9 days ago

Are you getting this error when trying to use the InternetExplorerDriver for WebDriver (Selenium 2.0)? "System.InvalidOperationException: Unexpected error launching Internet Explorer. Protected Mode must be set to the same value (enabled or disabled) for all zones. (NoSuchDriver)" Don't worry, it's easier to fix than it sounds... read more...

add a comment |category: |Views: 32

tags: another