Skip to main content
The Cloistered Monkey
  • Pages
  • Archive
  • Tags
  • RSS feed
  • Projects
    Ape Iron Beach Pig Rump & Thigh Bowling For Data Give the Fish Neurotic Networking Terribilis Ludum Visions, Voices, Data
  • Source

Fault Injection

Cloistered Monkey

2012-08-08 17:15

Source

Problem

You don't have control over external libraries but you need to test how your software handles errors from them.

Solution

Create duck-typed substitutes that call the external libraries but sometimes introduce errors. The percentage of errors should be low so that it doesn't interfere with other operations.
From Udacity's Software Testing course.
  • software testing
  • udacity
  • Previous post
  • Next post
Scribbled by the Cloistered Monkey - Powered by Nikola
This work is licensed under CC BY 4.0