Browse by Tags

All Tags » Unit Testing » Agile » Art Of Unit Testing (RSS)

Isolator Feature Focus: Duck Typing and Isolate.Swap by ISerializable - Roy Osherove's Blog : Agile

Typemock Isolator 5.1.1 has been released, and this release brings with it some awesome (seriously) features that are unique fro any other framework I've seen. a good overview of features can be found here . The Isolator Swap feature allows swapping...

Art Of Unit Testing – Book done, Wiki ready by ISerializable - Roy Osherove's Blog : Agile

I’m happy to report that my book has finally hit the “last review” stone, which means all chapters are done and the book should be in book stores around jan-feb 2009 . If you’d like to read the E-Book version right now(PDF) you can purchase that for a...

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 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...

"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...

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...

Research Finds TDD Boosts Developer Productivity by ISerializable - Roy Osherove&#39;s Blog : Agile

Thanks to Haacked for posting this one .  I haven't yet read it fully, but this IEEE paper shows good results when doing test-first development vs. other methods. "We found that test-first students on average wrote more tests and, in turn...

The Case For Typemock by ISerializable - Roy Osherove&#39;s Blog : Agile

I just wrote an email to someone regarding Typemock . We were discussing why they don't think Typemock holds the values that other mocking frameworks hold when I suddenly realized what I've been wanting to say all along about Typemock, and why...

TDD Anti Patterns by ISerializable - Roy Osherove&#39;s Blog : Agile

James Carr lists a nice bunch of TDD anti patterns . via Jeremy . Here's one example I run into often: "The Liar An entire unit test that passes all of the test cases it has and appears valid, but upon closer inspection it is discovered that...
More Posts Next page »