Latest Unit Testing stories

Using Gallio with NCover(blog.andreloker.de)

submitted by alokeraloker(1810) 3 years, 2 months ago

The transition from MbUnit 2.4 to MbUnit 3/Gallio is not as easy as one might expect. This article describes how Gallio can be used with NCover in manual or automatic builds. read more...

add a comment |category: |Views: 310

tags: another

Beginning Mocking With Moq 3 - Part 3(codethinked.com)

submitted by simonechsimonech(10.1k) 3 years, 2 months ago

Beginners introduction to mocking using the recently released Moq 3 framework. This is part 3 of the series read more...

add a comment |category: |Views: 158

tags: another

Beginning Mocking With Moq 3 - Part 2(codethinked.com)

submitted by justin_etheredgejustin_etheredge(8539) 3 years, 2 months ago

Beginners introduction to mocking using the recently released Moq 3 framework. read more...

1 comment |category: |Views: 234

tags: another

Beginning Mocking With Moq 3 – Part 1(codethinked.com)

submitted by justin_etheredgejustin_etheredge(8539) 3 years, 2 months ago

A intro to mocking using the newly release Moq 3 framework. read more...

4 comments |category: |Views: 451

tags: another

Why should I use mocking objects in my Unit Test?(blog.decayingcode.com)

submitted by arch4ngelarch4ngel(585) 3 years, 3 months ago

If we cut out any "fanboy" or favouritism toward certain framework and that we try to keep it in a one liner... I would say: "To simulate behaviours of objects that are impractical or impossible to incorporate inside a unit test". The Wikipedia's article about Mock Object mention some reason an object should be mocked. read more...

add a comment |category: |Views: 178

tags: another

100% Unit Testable Linq To Sql Repository - Kazi Manzur Rashid's Blog(weblogs.asp.net)

submitted by jantujantu(1045) 3 years, 3 months ago

In this post, I will show you how you can architect your Linq To Sql repository which will have 100% code coverage. I will use our favorite Northwind database along with my ongoing UnityCommonServiceLocatorMVC project. First, lets add a Linq To Sql diagram in our project and drag n drop the Category and Product table that will look something like foll... read more...

add a comment |category: |Views: 372

tags: another

Integrating TypeMock with ASP .NET Unit tests(nizarnoorani.com)

submitted by noorani786noorani786(342) 3 years, 3 months ago

Ivonna let's you write ASP .NET Unit tests in conjunction with TypeMock read more...

3 comments |category: |Views: 168

tags: another

Building a Nant Script -- Part 2: Adding NUnit tests(dimecasts.net)

submitted by dwhittakerdwhittaker(13.1k) 3 years, 3 months ago

Taking a look at how to create a build script with Nant, learning how to add NUnit tests read more...

add a comment |category: |Views: 195

tags: another

Saving the World via… TDD?(stevenharman.net)

submitted by usshermussherm(5285) 3 years, 4 months ago

A quick snippet of code showing the gist of the Context/Specification pattern... and ensuring we won't need John Connor's help after all. read more...

add a comment |category: |Views: 397

tags: another

Verifying code and testing with Pex(blog.maartenballiauw.be)

submitted by maartenbamaartenba(5845) 3 years, 4 months ago

Earlier this week, Katrien posted an update on the list of Belgian TechDays 2009 speakers. This post featured a summary on all sessions, of which one was titled “Pex – Automated White Box Testing for .NET”. Here’s the abstract: “Pex is an automated white box testing tool for .NET. Pex systematically tries to cover every reachable branch in a program by monitoring execution traces, and using a constraint solver to produce new test cases with different behavior. Pex can be applied to any existing .NET assembly without any pre-existing test suite. Pex will try to find counterexamples for all assertion statements in the code. Pex can be guided by hand-written parameterized unit tests, which are API usage scenarios with assertions. The result of the analysis is a test suite which can be persisted as unit tests in source code. The generated unit tests integrate with Visual Studio Team Test as well as other test frameworks. By construction, Pex produces small unit test suites with high code and assertion coverage, and reported failures always come with a test case that reproduces the issue. At Microsoft, this technique has proven highly effective in testing even an extremely well-tested component.” After reading the second sentence in this abstract, I was thinking: “SWEET! Let’s try!”. So here goes… read more...

add a comment |category: |Views: 249

tags: another

Design and Testability(codebetter.com)

submitted by JanVanRyswyckJanVanRyswyck(2724) 3 years, 5 months ago

Another good one read more...

add a comment |category: |Views: 347

tags: another

Genesis: Bridging The Gap Between Requirements And Code(davybrion.com)

submitted by teranexteranex(60) 3 years, 5 months ago

About the Genesis methodology and toolkit for software developers, that links unit tests to requirements in the functional analysis document... read more...

add a comment |category: |Views: 285

tags: another

Testing is hard but debugging just sucks A$$(devlicio.us)

submitted by JemmJemm(9604) 3 years, 6 months ago

"At the users group I asked the question to the group 'who creates automated tests as part of their daily development cycle?'. After I asked this question I followed it up with, and if you don't WHY, WHY, WHY, WHY...... Below are some of the answers I received (btw, not the first time I have heard these reasons)." read more...

1 comment |category: |Views: 366

tags: another

Is Code Coverage Really All That Useful?(kevinwilliampang.com)

submitted by kpanghmckpanghmc(2055) 3 years, 6 months ago

Test driven development proponents often tend to push code coverage as a useful metric for gauging how well tested an application is. 100% code coverage has long been the ultimate goal of testing fanatics. But is code coverage really all that useful? If I told you that my application has 100% code coverage, should that mean anything to you? read more...

1 comment |category: |Views: 252

tags: another

My Year With TDD(brian.genisio.org)

submitted by BrianGenisioBrianGenisio(1000) 3 years, 7 months ago

It's been over a year now since I have been developing using TDD (Test Driven Development) as my primary development practice. I wanted to reflect on what it has done for me professionally. In reality, the past year has been great for my professional career in many ways. read more...

1 comment |category: |Views: 525

tags: another

Insidious Dependencies(stevesmithblog.com)

submitted by ssmithssmith(1160) 3 years, 7 months ago

Many dependencies in code are obvious, such as relying on a particular framework or database implementation. Others can easily be overlooked. This article exposes some of the more insidious dependencies that commonly exist within applications which may be overlooked as such. read more...

1 comment |category: |Views: 310

tags: another