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

Testing Without Assertions

Testing Without Assertions

At Buzzfeed, analytics is extremely important as a feedback loop to the content creators. They use a client side JS library to send these analytics events which is well tested; however, in early 2016 there were a series of data outages that prompted the team to revisit their testing strategy. Testing network requests to downstream systems can be tough. There’s only so far that Selenium tests can reach and you can often end up with tests that offer you false confidence in the complete system. In this presentation, Ian Feather will describe how they approached this problem and ultimately the solution they chose: using Sauce Labs to run continuous cross-platform tests against our production systems. Ian will share a real-life case study on how BuzzFeed knows their analytics are working correctly, a general technique for testing network requests to downstream systems, and more.

Ianfeather

March 01, 2018
Tweet

More Decks by Ianfeather

Other Decks in Technology

Transcript

  1. Feature: Quizzes Scenario: Filters When I go to the quiz

    page And I click on the filter Then I see the new results
  2. Feature: Quizzes Scenario: Analytics When I go to the quiz

    page And I click on the filter Then ???
  3. Feature: Quizzes Scenario: Analytics When I go to the quiz

    page And I click on the filter Then I see the event locally
  4. Feature: Quizzes Scenario: Analytics When I go to the quiz

    page And I click on the filter Then I see the event in SessionStorage