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

My own preferred testing techniques

dgageot
September 26, 2011

My own preferred testing techniques

dgageot

September 26, 2011
Tweet

More Decks by dgageot

Other Decks in Programming

Transcript

  1. www.parisjug.org Copyright(c) 2010 Paris JUG, Licence CC-Creatives Commons 2.0 France

    - Paternité - Pas d’utilisation commerciale - Partage des Conditions à l’identique
  2. Continuous testing Runs all impacted tests after each code change

    Eclipse and Intellij OpenSource, Free http://infinitest.org
  3. Continuous testing JUnit Max Runs all impacted tests after each

    code change Try to run tests failing most often, first Eclipse and Intellij OpenSource, Free Developed by Kent Beck http://www.junitmax.com/
  4. So

  5. Do you known/use all the features? @Test @Before, @After, @BeforeClass,

    @AfterClass @RunWith @Theory, @DataPoint(s) @Rule @SuiteClasses @Category (beta) JUnit 4.8.2 Demo
  6. @Categories and @SuiteClasses JUnit 4.8.2 Cumbersome Need not forget to

    add each test manually in all suites Who doesn’t run all the tests every build? :-)
  7. @Rule Take a look at the code of MethodRule, ExternalResource,

    TestWatchman, Verifier... Write your own rules if they make the tests easier to read. JUnit 4.8.2
  8. www.parisjug.org Copyright(c) 2010 Paris JUG, Licence CC-Creatives Commons 2.0 France

    - Paternité - Pas d’utilisation commerciale - Partage des Conditions à l’identique