Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

of

Keeping your tests lean Slide 1 Keeping your tests lean Slide 2 Keeping your tests lean Slide 3 Keeping your tests lean Slide 4 Keeping your tests lean Slide 5 Keeping your tests lean Slide 6 Keeping your tests lean Slide 7 Keeping your tests lean Slide 8 Keeping your tests lean Slide 9 Keeping your tests lean Slide 10 Keeping your tests lean Slide 11 Keeping your tests lean Slide 12 Keeping your tests lean Slide 13 Keeping your tests lean Slide 14 Keeping your tests lean Slide 15 Keeping your tests lean Slide 16 Keeping your tests lean Slide 17 Keeping your tests lean Slide 18 Keeping your tests lean Slide 19 Keeping your tests lean Slide 20 Keeping your tests lean Slide 21 Keeping your tests lean Slide 22 Keeping your tests lean Slide 23 Keeping your tests lean Slide 24 Keeping your tests lean Slide 25 Keeping your tests lean Slide 26 Keeping your tests lean Slide 27 Keeping your tests lean Slide 28 Keeping your tests lean Slide 29 Keeping your tests lean Slide 30 Keeping your tests lean Slide 31 Keeping your tests lean Slide 32 Keeping your tests lean Slide 33 Keeping your tests lean Slide 34 Keeping your tests lean Slide 35 Keeping your tests lean Slide 36 Keeping your tests lean Slide 37 Keeping your tests lean Slide 38 Keeping your tests lean Slide 39 Keeping your tests lean Slide 40 Keeping your tests lean Slide 41 Keeping your tests lean Slide 42 Keeping your tests lean Slide 43
Upcoming SlideShare
What to Upload to SlideShare
Next
Download to read offline and view in fullscreen.

3 Likes

Share

Download to read offline

Keeping your tests lean

Download to read offline

We've come to realize that automation provides an immense amount of value in preventing regressions and helping to deliver quality software. As your automation grows and grows, it requires continuous maintenance so that tests remain fast, reliable, and valuable. If you're not scaling efficiently, your automation suite will turn into a messy, uncontrollable beast. Having a lean test suite will help to combat this.

This presentation shares methods that you can use to keep your automated test suites lean and mean, so they always provide quick and accurate feedback to your software delivery team.

Related Books

Free with a 30 day trial from Scribd

See all

Related Audiobooks

Free with a 30 day trial from Scribd

See all

Keeping your tests lean

  1. 1. KEEPING YOUR TESTS LEAN
  2. 2. @iammeaghanlewis meaghan@lever.co meaghan-lewis
  3. 3. WHAT DOES LEAN MEAN ANYWAY?
  4. 4. VALUABLE RELIABLE FAST
  5. 5. 1000+ TESTS
  6. 6. 12 HR BUILD
  7. 7. 100% FAILURE RATE
  8. 8. HOW DID WE GET A LEAN TEST SUITE?
  9. 9. NOT QUITE...
  10. 10. VALUABLE
  11. 11. Tests provide useful information to your team
  12. 12. TESTS CAN GET OUTDATED
  13. 13. Ideas for VALUABLE tests
  14. 14. Re-evaluate & Analyze ● What is this test doing? ● What value is this test providing? ● Is this testing the right thing?
  15. 15. Quality vs Quantity
  16. 16. Collaborate on testing
  17. 17. Treat test code like production code
  18. 18. RELIABLE
  19. 19. Tests should always have the same result
  20. 20. Antipattern: Unreliable tests EVEN ONE FAILURE MAKES A DIFFERENCE...
  21. 21. Ideas for RELIABLE tests
  22. 22. Isolate flaky tests Isolate flaky test Analyze Fix Move back to build
  23. 23. Monitor flakiness ● For each test run, record the failures ○ Test ○ Failure ○ # of times failed
  24. 24. Automatically rerun failures
  25. 25. Use specific test selectors
  26. 26. Independent tests ● Tests should all be hermetic ● Execution of one test does not affect others ● Run in dedicated testing environment
  27. 27. FAST
  28. 28. TESTS HAVE A SHORT FEEDBACK LOOP
  29. 29. TESTS SHOULDN’T FEEL LIKE A MARATHON
  30. 30. UNIT & INTEGRATION TESTS DEPLOY TO STAGING UI TESTS DEPLOY TO PRODUCTION POST DEPLOY TESTS CONTINUOUS DEPLOYMENT PIPELINE
  31. 31. Ideas for fasts tests
  32. 32. Parallelize
  33. 33. Avoid testing in the UI
  34. 34. Headless tests ● XVFB ● PhantomJS
  35. 35. REMEMBER...
  36. 36. There are tradeoffs
  37. 37. It’s okay to start over
  38. 38. Testing is a team effort
  39. 39. THANKS! @iammeaghanlewis linkedin.com/in/meaghan-lewis/ meaghan@lever.co
  • JenyaVasileuskaya

    Dec. 14, 2018
  • arterberry

    Apr. 10, 2018
  • MikeClark69

    Nov. 28, 2017

We've come to realize that automation provides an immense amount of value in preventing regressions and helping to deliver quality software. As your automation grows and grows, it requires continuous maintenance so that tests remain fast, reliable, and valuable. If you're not scaling efficiently, your automation suite will turn into a messy, uncontrollable beast. Having a lean test suite will help to combat this. This presentation shares methods that you can use to keep your automated test suites lean and mean, so they always provide quick and accurate feedback to your software delivery team.

Views

Total views

966

On Slideshare

0

From embeds

0

Number of embeds

120

Actions

Downloads

7

Shares

0

Comments

0

Likes

3

×