Testing anti-patterns I learned to stay away from over the years.
Confession: I’ve always struggled to understand the difference between stubbing and doubles…
Are your feature flags states leaking between your test cases? Stub them all to make your test suite more reliable. Here’s how.
Use RSpec’s Focus filter without fear of accidentally turning CI into a single-test false positive.
RSpec custom matchers can be written using plain old objects.
Running tests and managing deployments can be a tediously manual process or overwhelming to automate with all the available platforms and tools to choose from. We at thoughtbot want to share how our process has made CI/CD simple and enjoyable.
A subtle bug happens when validating the presence of boolean fields in Rails. Here’s how to find it before it hits production.
Running shell commands in Ruby, truly random numbers, fixing flaky tests, and how to get the most out of TypeScript.
Time dependent tests are difficult to diagnose, and the symptoms don’t present themselves until it’s too late. This article will help you determine if your test suite is time dependent.
Here are the risks and common scenarios we see when a team doesn’t have a plan for ongoing maintenance for their Rails application. We also share how we support clients in these situations with our new, flexible, Rails Maintenance offering.