Browse by Tags

All Tags » Art Of Unit Testing (RSS)

Over Specification in Tests by ISerializable - Roy Osherove's Blog : Agile

I've gotten the chance to visit and consult various companies and I see this all the time: Over specification in tests, especially when doing mocks and stubs . One main reason for that is that people use their stub as a mock object (stubs are fake...

A sneak Preview of Typemock Racer : Thread Deadlock Finder by ISerializable - Roy Osherove's Blog : Agile

Here's a sneak preview of the upcoming Typemock Racer product, which I'm currently working on. We should be out in private CTP in a couple of weeks I hope. Typemock Racer tries to solve one huge problem for developers working in multi threaded...

Introducing Depender - Testability Problem Finder by ISerializable - Roy Osherove's Blog : Agile

Depender is a tool that I created to illustrate several concepts both for my book and both for my training classes. I think it should prove valuable (as it gets more and more features) to anyone who is trying to write tests for existing code.   Depender...

Over-testable systems, and mocks as bad test smells by ISerializable - Roy Osherove's Blog : Agile

This is an interesting problem I've been running into at work. Sometimes we would try to write a test against the system or a component and we would literally have too many choices of how to write it or where to "intercept" or "inject"...

Unit Testing Interview at TechEd by ISerializable - Roy Osherove's Blog : Agile

My interview at teched us on advanced unit testing and legacy code can be seen here: http://msdn.microsoft.com/en-us/events/teched/cc676818.aspx   or downloaded here We occasionally stop and laugh a bit because "speaker idol" contest was...

Fit/Fitnesse Fixture Gallery -Real world help for FIT and Fitnesse users by ISerializable - Roy Osherove's Blog : Agile

This great news was just published at the alt.net mailing list. putting it here for future reference. "Fixture Gallery 2.0 (release 2008-06-09) is now available for download from SourceForge. Fixture Gallery is a cookbook for FIT/FitNesse tests....
Filed under: , ,

Unit testing vs. Integration Testing : The Restaurant Analogy by ISerializable - Roy Osherove's Blog : Agile

Here's an analogy I came up with to explain the difference between unit tests and integration tests. Imagine going to a restaurant with a bunch of your friends. there are some couples there as well as singles. At the end of the meal, it is time to...

Tough Questions about unit testing - Your comments required by ISerializable - Roy Osherove's Blog : Agile

As part of My Book I have a chapter on the challenges of integrating unit testing practices into an organization. One of the sections deals with "Tough questions and answers". In short, what are the tough questions you will have to deal with...

"Swapping" instead of "Injecting" calls between classes by ISerializable - Roy Osherove's Blog : Agile

Eli Lopian, Typemock CEO and awesome Coder, just created a nice little API wrapper around Typemock Isolator that would allow a very simple and readable "Swapping" effect between classes. It would allow you to write code like this:    ...

NullObject.For<T> - As simple as it gets, but no simpler by ISerializable - Roy Osherove&#39;s Blog : Agile

This NullObject Factory from Paul is very nice, simple and clean in its design. I really like it and I can see many uses for it, in parallel with working with your standard mocking framework or IoC Container Implementation .   here is a little usage...

Unit Testing Denial Pattern #1: Pretending the test is no longer valid by ISerializable - Roy Osherove&#39;s Blog : Agile

Today was both a good day for e and a bad day for me. Good day because I managed to get a full suite of tests that were somehow failing to work again after a refactoring that got out of hand. Bad - because out of all the tests, one of them failed. Here's...

Pros and Cons and of using an Auto Mocking container in your tests by ISerializable - Roy Osherove&#39;s Blog : Agile

In regards to my post about injecting mocks and stubs using a container in your tests, Dave asks in the comments: Why would you want to do this in the first place? Here are the things I can think about right now (pros and cons). I'd love to hear your...

What is a good example of unit test over specification? by ISerializable - Roy Osherove&#39;s Blog : Agile

I'm working on chapter 8 of my upcoming book and I need to come up with a good example of over specification in unit tests, that leads to an unmaintainable test in the long run (fragile test). I have my ideas on how to show it, but I'd love to...

Future of Mock Frameworks: AEIS - Abstract Expectations & Isolation Syntax by ISerializable - Roy Osherove&#39;s Blog : Agile

As I was looking back and forward on the changing syntax of testing and mock frameworks, it occurs to me that there are still things that need to be solved in the mocking space. many things. It's hard to choose a framework and stick with it because...

Typemock Isolator 4.2 Beta released with cool new features (Previously Typemock.NET) by ISerializable - Roy Osherove&#39;s Blog : Agile

We just released the beta of Typemock Isolator 4.2 beta (Previously just named Typemock.NET). You can get it here . Some of the cool new things: Mocked methods will be highlighted in the debugger if you step into them. in the picture below the "DoSomething...
More Posts Next page »