• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content

Loading…

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

Like this presentation? Why not share!

My own preferred testing tools - Paris JUG 2011

on

  • 1,138 views

 

Statistics

Views

Total Views
1,138
Views on SlideShare
1,136
Embed Views
2

Actions

Likes
0
Downloads
5
Comments
0

2 Embeds 2

http://www.linkedin.com 1
https://www.linkedin.com 1

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

CC Attribution-ShareAlike LicenseCC Attribution-ShareAlike License

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    My own preferred testing tools - Paris JUG 2011 My own preferred testing tools - Paris JUG 2011 Presentation Transcript

    • My own preferred testing techniquesParis Java User Group
    • www.parisjug.orgCopyright(c) 2010 Paris JUG, Licence CC-Creatives Commons 2.0 France - Paternité - Pas d’utilisation commerciale - Partage des Conditions à l’identique
    • My own preferred testing techniques Frameworks Plugins More expressive tests More robust Faster JUnit 4+
    • Personal taste only
    • Plugins
    • MoreUnit, a unit test friendly Eclipse See what’s tested http://moreunit.sourceforge.net/
    • MoreUnitJump to Test http://moreunit.sourceforge.net/
    • MoreUnit Run current test Refactoring friendly (move, rename, delete)http://moreunit.sourceforge.net/ Demo http://moreunit.sourceforge.net/
    • Continuous testingRuns all impacted tests after each code change Eclipse and Intellij OpenSource, Free http://infinitest.org
    • Demo
    • JUnit Max Continuous testingRuns 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/
    • Frameworks
    • HamcrestMore readable assertions
    • Hamcrest More samples+ easy to write custom matchers
    • So
    • FEST-AssertMore readable assertions Demo
    • FEST-AssertMore readable assertions OpenSourcehttp://fest.easytesting.org/
    • JUnit 4.8.2 Worst logo ever!
    • JUnit 4.8.2 Do you known/use all the features? @Test@Before, @After, @BeforeClass, @AfterClass @RunWith @Theory, @DataPoint(s) @Rule @SuiteClasses @Category (beta) Demo
    • JUnit 4.8.2@Categories and @SuiteClasses
    • JUnit 4.8.2@Categories and @SuiteClasses
    • JUnit 4.8.2@Categories and @SuiteClasses Cumbersome Need not forget to add each test manually in all suites Who doesn’t run all the tests every build? :-)
    • JUnit 4.8.2 @Rule Take a look at the code of MethodRule,ExternalResource, TestWatchman, Verifier...Write your own rules if they make the tests easier to read.
    • Thank you Q/A
    • www.parisjug.orgCopyright(c) 2010 Paris JUG, Licence CC-Creatives Commons 2.0 France - Paternité - Pas d’utilisation commerciale - Partage des Conditions à l’identique