• Like

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.

My own preferred testing tools - Paris JUG 2011

  • 975 views
Uploaded on

 

More in: Technology
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
975
On Slideshare
0
From Embeds
0
Number of Embeds
1

Actions

Shares
Downloads
6
Comments
0
Likes
0

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. My own preferred testing techniquesParis Java User Group
  • 2. www.parisjug.orgCopyright(c) 2010 Paris JUG, Licence CC-Creatives Commons 2.0 France - Paternité - Pas d’utilisation commerciale - Partage des Conditions à l’identique
  • 3. My own preferred testing techniques Frameworks Plugins More expressive tests More robust Faster JUnit 4+
  • 4. Personal taste only
  • 5. Plugins
  • 6. MoreUnit, a unit test friendly Eclipse See what’s tested http://moreunit.sourceforge.net/
  • 7. MoreUnitJump to Test http://moreunit.sourceforge.net/
  • 8. MoreUnit Run current test Refactoring friendly (move, rename, delete)http://moreunit.sourceforge.net/ Demo http://moreunit.sourceforge.net/
  • 9. Continuous testingRuns all impacted tests after each code change Eclipse and Intellij OpenSource, Free http://infinitest.org
  • 10. Demo
  • 11. 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/
  • 12. Frameworks
  • 13. HamcrestMore readable assertions
  • 14. Hamcrest More samples+ easy to write custom matchers
  • 15. So
  • 16. FEST-AssertMore readable assertions Demo
  • 17. FEST-AssertMore readable assertions OpenSourcehttp://fest.easytesting.org/
  • 18. JUnit 4.8.2 Worst logo ever!
  • 19. 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
  • 20. JUnit 4.8.2@Categories and @SuiteClasses
  • 21. JUnit 4.8.2@Categories and @SuiteClasses
  • 22. 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? :-)
  • 23. 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.
  • 24. Thank you Q/A
  • 25. www.parisjug.orgCopyright(c) 2010 Paris JUG, Licence CC-Creatives Commons 2.0 France - Paternité - Pas d’utilisation commerciale - Partage des Conditions à l’identique