Workshop: Testing: How to write fewer tests and cover more cases
Lucian Ghindă
• Sarajevo, Bosnia and Herzegovina
•
Workshop
Date: September 12, 2024
Published: unknown
Announced: unknown
When learning Ruby or Ruby on Rails, you learn about RSpec or Minitest and how to use the library to write model, controller, or integration tests.
Yet you don’t learn much about testing: What is testing and how do you know that the tests you wrote will catch bugs?
How do you pick what to test?
There are a lot of resources out there about how to write RSpec or Minitest and about speeding up test case execution, but there is little knowledge shared online about how to decide what to test and how to write a good test case in Ruby.
This workshop plans to close this knowledge gap by showing easy-to-use and practical test design techniques, all applied in Ruby and Ruby on Rails.
I will cover test design techniques that help you write the minimum number of tests that would cover the widest surface of your app.
You will learn about Decision Tables, Boundary Value Analysis, Equivalence Partitioning and more, all with Ruby code examples.
You will lean how to write the minimum amount of tests while trying to cover as much as possible the part that you are testing.
All are based on mathematically proven techniques.
EuRuKo 2024