Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Testing The Multiverse - OS Bridge 2015

Testing The Multiverse - OS Bridge 2015

It’s a basic principle of testing that minimizing dependencies will make you happier, faster, and more productive.

But what happens when you can’t?

If your code plugs into or extends another gem, comfortable isolation might be out of the question. Stubbing and careful design can carry you a ways, but eventually you need to actually test your code against those gems you’re building on.

Luckily, there are ways to reduce this pain. We’ll dig deep on creating a simple environment to check your work against multiple dependencies. We’ll see patterns that help avoid pulling your hair out when those dependencies change. We’ll even search around the raw edges, examining how to verify what your code does when it lands in an environment you haven’t tested.

There’s a multitude of gems out there to build on. Let’s see how we can test with them!

Jason R Clark

June 24, 2015
Tweet

More Decks by Jason R Clark

Other Decks in Technology

Transcript

  1. 4

  2. 5

  3. 9

  4. 11

  5. 12

  6. 13

  7. 14

  8. 15

  9. 16

  10. 17

  11. 18

  12. 19

  13. 20

  14. 21

  15. 22

  16. 23

  17. 24

  18. 25

  19. 26

  20. 27

  21. 28

  22. 29

  23. 30

  24. 31

  25. 32

  26. 35

  27. 36

  28. 37

  29. 38

  30. 39

  31. 40

  32. 41

  33. 42

  34. 43

  35. 44

  36. 45

  37. 46

  38. 47

  39. 48

  40. 49

  41. 50

  42. 51

  43. 52

  44. 53

  45. 54

  46. 55

  47. 56

  48. 57

  49. 58

  50. 59

  51. 60

  52. 62

  53. 63

  54. 64

  55. 65

  56. 66

  57. 67

  58. 69

  59. 70

  60. 72

  61. 73

  62. 74

  63. 75

  64. 76

  65. 77

  66. 78

  67. 79

  68. 80

  69. 81

  70. 82

  71. 83

  72. 85

  73. 86

  74. 87

  75. 88

  76. 89

  77. 90

  78. 91

  79. 92

  80. 93

  81. 94