The Java Tutorials and Videos web site has published an interesting article titled "Speeding Up Java Test Code". This article explains that there are two distinct areas where we can work to improve the speed of our feedback cycle: code and build. The author shows you how to speed up your Java test code.One of the advice is that you don’t want your test to set up things you’ll never use. Another recommendation is that you should avoid making network calls in your unit
tests. More specifically, we should see that the code we’re testing
doesn’t access the network because calling the neighbors is a seriously
slow conversation. We also want to minimize access to the file system in order to keep our tests fast. Keeping these in mind is a good idea if your feedback loop starts growing too long.
About software testing and software quality: Testing Tools, Bug Tracking, Code Review, Continuous Integration.
Showing posts with label junit. Show all posts
Showing posts with label junit. Show all posts
Saturday, 1 September 2012
Thursday, 21 April 2011
Unit Testing and Mocking Tools Directory
The Unit Testing and Mocking Tools Directory presents a list of unit testing and mocking tools for C/C++, Java, Javascript, .NET, PHP, Python, Ruby, Flex, etc.
http://www.unittestingtools.com/
http://www.unittestingtools.com/
Friday, 28 May 2010
Contract Tests in JUnit 4
J.B. Rainsberger talked about how contract tests can be used to test the interaction between classes when using a mockist approach to developer testing. He wondered aloud if it would be possible to write these kinds of tests using abstract classes and JUnit 4. The answer is yes, with some caveats, as Ben Rady demonstrates it. You can watch this presentation called "Contract Tests in JUnit 4" on the directory of Java videos and tutorials.
Subscribe to:
Posts (Atom)