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

Client-side testing

Client-side testing

Testing tools that we use at Vimeo. Full blog post here https://sean.is/writing/client-side-testing-with-mocha-and-karma

Sean Coker

March 06, 2015
Tweet

Other Decks in Programming

Transcript

  1. •  Tests you write for code that generally runs in

    the browser︎ ︎ Client-side testing
  2. •  Tests you write for code that generally runs in

    the browser︎ ︎ •  JavaScript, HTML, CSS︎ Client-side testing
  3. Test coverage •  Tells you how much of your code

    has been executed in your tests︎
  4. Test coverage •  Tells you how much of your code

    has been executed in your tests︎ ︎ •  A guide, not a definitive measure︎ ︎
  5. Test coverage •  Tells you how much of your code

    has been executed in your tests︎ ︎ •  A guide, not a definitive measure︎ •  Honest coverage is the best coverage︎
  6. •  Test framework that runs our test suites︎ •  Expressive

    BDD-style assertions with Chai︎ ︎ Mocha
  7. •  Test framework that runs our test suites︎ •  Expressive

    BDD-style assertions with Chai︎ •  Mock functions with Sinon︎ ︎ Mocha
  8. •  Test runner that runs our mocha tests in multiple

    environments︎ •  Watches test related files for changes and re- runs tests for you︎ ︎ ︎ Karma
  9. •  Test runner that runs our mocha tests in multiple

    environments︎ •  Watches test related files for changes and re- runs tests for you︎ •  Extensible︎ ︎ ︎ Karma