Skip to main content
thoughtbot thoughtbot
  • Live on Twitch!

    thoughtbot is livestreaming

    Work alongside the thoughtbot team as we collaborate with each other and our clients, live. Ask us anything, we're live right now!

  • Case Studies
  • Blog
  • Let’s Talk
Live on Twitch!

thoughtbot is livestreaming

Work alongside the thoughtbot team as we collaborate with each other and our clients, live. Ask us anything, we're live right now!

Let’s get started!
View all Services
Development
  • Ruby on Rails
  • Hotwire
  • AI and Machine Learning
  • Maintenance
  • Mobile
Design
  • Discovery Sprints
  • UX, UI, and Product Design
  • Design Systems
Product
  • Product Management
  • Accessibility
Team and Processes
  • Team Augmentation
  • Fractional Leadership
View all Services
View all Resources
Development
  • Tech Leadership Resources
  • Open Source
  • Books
  • The Bike Shed Podcast
  • Live Streaming on YouTube
  • Conference Talks
The business of great software
  • Playbook
  • Purpose Built
  • Giant Robots Smashing Into Other Giant Robots Podcast
  • Design Sprint Guide
  • Live Streaming on LinkedIn
View all Resources

Testing Articles

Written by thoughtbot, your expert strategy, design, product management, and development partner.

    • All Topics
    • Design
    • Web
    • iOS
    • Android
    • More topics
  1. The Self-Contained Test

    Learn how to write tests so they’re easy to read and your colleagues will thank you.

    Edward Loveall
    May 18, 2020
    • Testing
    • Good Code
    • Ruby
  2. Announcing Fishery – a JavaScript and TypeScript Factory Library

    We have just released Fishery, a TypeScript-compatible library for setting up JavaScript objects for use in tests and anywhere else you need to set up data.

    Stephen Hanson
    February 5, 2020
    • TypeScript
    • JavaScript
    • Testing
    • Web
  3. The Case for WET Tests

    We can always make our test suite more DRY. But should we?

    Amanda Beiner
    December 10, 2019
    • Testing
    • TypeScript
    • JavaScript
    • React
  4. Faking External Services in Tests with Adapters

    When faking external services in tests, start with something simple. I like having a public interface to adapters and having an in-memory adapter for tests. Let me show you an example.

    German Velasco
    November 28, 2019
    • Testing
    • Ruby
    • Rails
    • Web
  5. GraphQL: The Case of the Missing Fields

    Because who doesn’t like a good ole mystery?

    EJ Mitchell
    October 14, 2019
    • Testing
    • Web
    • Architecture
    • Debugging
  6. Mocking React Components with Jest

    Mocking in Jest can be tricky. Mocking React Components in Jest with ES modules can be even tricker. Yet, it’s still possible.

    Edward Loveall
    September 24, 2019
    • React
    • Testing
    • JavaScript
    • TypeScript
    • Node.js
  7. Mocking and faking external dependencies in elixir tests

    Explore a combination of mocking, faking, and dependency injection to focus on the code being tested.

    Wil Hall
    September 23, 2019
    • Testing
    • Elixir
  8. TDDing in React with Apollo and TypeScript

    Pointers for doing TDD with React using Apollo and TypeScript.

    Alejandro Dustet
    June 25, 2019
    • Testing
    • TDD
    • TypeScript
    • JavaScript
    • GraphQL
    • Apollo
    • React
    • Web
  9. Deprecating static attributes in factory_bot 4.11

    Static attributes have been the source of much confusion over the years. Their deprecation will come with a rubocop-rspec Cop to automatically replace with dynamic attributes.

    Daniel Colson
    August 16, 2018
    • Factory Bot
    • Open Source
    • Testing
    • Ruby
  10. Why Factories?

    Understanding why we use factories helps us write faster, more readable tests.

    Joël Quenneville
    January 12, 2018
    • Ruby
    • Web
    • Testing
  11. Sign up to receive a weekly recap from thoughtbot

« First ‹ Prev 1 2 3 4 5 6 7 8 … Next › Last »

Footer

thoughtbot
  • Services
  • Case Studies
  • Resources
  • Let's Talk
  • Our Company
  • Careers
  • Purpose
  • Blog
  • Sponsor
  • Mastodon
  • GitHub
  • Instagram
  • YouTube
  • Twitch
© 2025 thoughtbot, inc.

The design of a robot and thoughtbot are registered trademarks of thoughtbot, inc.

  • US: +1 (877) 9-ROBOTS
  • UK: +44 (0)20 3807 0560
  • Beware of fraudulent thoughtbot job listings Learn more
  • Code of Conduct
  • Accessibility Statement
  • Privacy Policy