Grease your Suite: Tips and Tricks for Faster Testing
Published July 15th, 2010 Under Open Source Tools, Software Testing | Leave a Comment
Continuous integration is a great way to keep your code base organized and well tested. But when a test suite takes so long to run that developers stop running it before every commit, they lose their constant feedback loop and quality drops. In this talk we’ll explore methods of speeding up the test suite so that developers can be confident about the code they’ve written before they share it with the team. We’ll start with quick cheap fixes, like optimizing your operating system, that can yield drastic results (like cutting test time in half!) with no loss of functionality. We’ll also cover methods of writing tests that reduce their run time with gems like fast_context for shoulda. At then end, we’ll move to more involved methods of multi-tasking your test suite to run on all the cores in your workstation and even to setting up a distributed testing cloud to run all your tests in parallel. Every tactic will be backed up with hard benchmarks from real production code. We’ll show the evolution of a test suite from its full run time of 13 minutes down to a number you won’t believe.
Video Producer: Gotham Ruby Conference
Sustainable Test-Driven Development
Published July 7th, 2010 Under Software Testing | Leave a Comment
Steve Freeman proposes advice to write good tests that make development easier avoiding adding code that is hard to maintain. This presentation covers: test readability, complex test data, test diagnostics and test flexibility.
http://www.infoq.com/presentations/Sustainable-Test-Driven-Development
Learning TDD through Test-first Teaching
Published July 5th, 2010 Under Open Source Tools, Software Testing | Leave a Comment
How to get started with TDD? Test-First Teaching is an innovative teaching approach that is gaining widespread adoption. Sarah Allen talks about how she teaches Ruby and Rails through a test-first approach. She demonstrates test-first teaching and then discuss how to turn the corner from simply making tests pass to how to use a test-first approach to software design.
Video Producer: East Bay Ruby Meetup Group
Contract Tests in JUnit 4
Published May 28th, 2010 Under Open Source Tools, Software Testing | Leave a Comment
As part of his talk on integration tests J.B. Rainsberger talked about how contract tests can be used to test the interaction between classes when using a mockist approach to developer testing. He wondered aloud if it would be possible to write these kinds of tests using abstract classes and JUnit 4. The answer is yes, with some caveats, as Ben Rady demonstrates it.
Video produced by Ben Rady
Moving to Test-Driven Development and Exploring Language Paradigms
Published April 29th, 2010 Under General | Leave a Comment
Michael Feathers defines legacy code as “code without tests.” There’s a major qualitative difference when working on code without tests. Feathers’ job is to move software teams from their current process to a test-driven development process. In this interview he also discusses functional programming and other important paradigms that developers should consider.
keep looking »