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

Unit testing

Unit testing

Author: Jiří Urbášek http://twitter.com/jiriurbasek
Presented on BAiOS #0 https://www.facebook.com/bratislavaios

Avatar for bratislavaios

bratislavaios

June 14, 2012
Tweet

More Decks by bratislavaios

Other Decks in Programming

Transcript

  1. Goal Strongest technique Finding bugs (things that don’t work as

    you want them to) Manual testing (sometimes also automated integration tests) Detecting regressions (things that used to work but have unexpectedly stopped working) Automated integration tests (sometimes also manual testing, though time-consuming) Designing software components robustly Unit testing (within the TDD process) ukradeno z: http://blog.stevensanderson.com/2009/08/24/writing-great-unit-tests-best-and-worst-practises/
  2. Tipy jak na unit testy • je potřeba se je

    naučit psát • unit test musí být možné napsat ve velmi krátkém čase • testujte tam, kde to je levné, nebo výhodné • bug => test => oprava • testujte co nejmenší části kódu • složitý unit test => váš kód je nahovno špatný