Videos tagged with stubbing




Dingus: A recording mock/stub library for Python with automatic isolation

Dingus: A recording mock/stub library for Python with automatic isolation

Posted in Development, Project Management, Testing

Dingus is a mocking/stubbing library I've been working on for about a year. It grew out of a now-defunct project's test suite, and I've used it in about 3,500 lines of unit test code. It does two things that are pretty novel: A dingus allows you to do almost anything to it, including nesting accesses arbitrarily deep. If you have a dingus d, you can say 99 * (d.foo.bar.baz() ** 'hello')[15] and...

Tags: Python, TDD, Unit Testing, Mocking, stubbing, Dingus


MountainWest RubyConf 2008: BDD with Shoulda

MountainWest RubyConf 2008: BDD with Shoulda

Posted in Project Management, Testing, Conferences, Development, Frameworks

Learn how to use Shoulda to increase your test coverage and readability as we walk through developing an application using BDD methodologies. In addition, you'll learn good general testing techniques, including judicious use of mocking and stubbing. At the end of the presentation, you'll be given a thorough crash course on the advanced meta-programming techniques that went into the development ...

Tags: Practices, Q&A, Conferences, Ruby, Ruby On Rails, Frameworks, BDD, Unit Testing, Metaprogramming, Mocking, Confreaks, ...