Below you will find pages that utilize the taxonomy term “Testing”
Thinking of Bugs in Classes
We spent the time writing tests, and yet, a bug survived. Should we just stop writing tests? No, but we should maybe write better tests, and think about them differently.
Cold Water for Your Code Coverage
Code coverage, the percentage of your code covered by automated tests, is a metric associated with quality. In this post, I’d like to investigate this association. And pour some cold water on it.
Why Do I Have to Use the Factorybot Gem, Again?
The FactoryBot gem, previously known as FactoryGirl, is ubiquitous in Ruby and Ruby on Rails testing. If you aren’t familiar with it, you might be wondering, what’s the point? Wouldn’t it be simpler to just build objects myself?
RSpec.describe vs. describe: Which Should I Use?
Ruby’s RSpec describe
block has two common syntaxes. Which should you use?
On Disabling Tests
Today I want to talk about a common technique: disabling failing tests to allow a feature to ship. Maybe sometimes you gotta do it. But long-term I think it causes more problems than it solves.
Want Better Automated Tests? Hard-Code Your Expectations
Hard-coded test expectations have many benefits that I’ll explore in this post.
A Short Introduction to Test-Driven-Development (TDD)
I’ve practiced TDD (Test-Driven-Development) a lot and feel knowledgable about when it’s useful and when it isn’t. In this post, I’d like to summarize what I’ve learned.
Learn to Test
What is a skill one could learn to set themselves apart from other entry-level programmers? Testing.