Improving Development with Context-Based Testing

September 09, 2021 18:30

Meetup: Register for this Event

IN PERSON OPTION (Let us know so we have enough pizza)
Please let us know whether you plan to attend online or in person.

Speaker: Claudio is a Technical Director at Improving Houston. He has been developing software since the late 90’s (FoxPro, .NET, Ruby on Rails). When not building software, consulting with clients, giving presentations, delivering training, or hanging out with his family, he can probably be found either working on his music or riding his motorcycle. Check out his blog at www.lassala.net

Improving Development with Context-Based Testing

It’s very common for developers to follow a “one test fixture per class/component” approach; that is, one file containing all of the tests that verify a given class or component. Then a new bug report comes in, the fix is a simple one-liner, but it requires 50 new lines of test code. There’s also a new feature that’s supposed to be easy to implement, but too hard to write tests for it because the test files are too messy. In both cases, the tendency is to simply ignore the tests, write the code, and call it done.

In this talk, we’ll take a look at context-based testing as an approach to organizing tests, making them easier to read, write, and maintain. It works for many types of tests, such as unit, integration, and end-to-end. And it keeps both developers and the business happy!

Presentation Recording