Showing posts with label unit testing. Show all posts
Showing posts with label unit testing. Show all posts

Saturday, 1 September 2012

Speeding Up Java Unit Testing

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.

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/

Tuesday, 5 October 2010

Junit Java Unit Testing Tool Presentation

Methods & Tools, a free software development magazine available on the web, has published a presentation of JUnit. JUnit is a Java library for unit testing, which has advanced to the de-facto standard in unit testing. By using JUnit, you can assert that methods in your Java code work as designed, without the need to set up the complete application.

Tuesday, 14 September 2010

Continuous Integration: Continuous Build or Continuous Quality Control?

The last Methods & Tools poll wanted to determine the level of adoption of continuous integration tools in organizations. The following question was asked: “Do you use a tool for continuous integration (automated build and unit testing)?”

I use tools for continuous integration 66%
My organization has tools, but my project or I do not use them 13%
My organization has no tools for continuous integration 21%

Participants: 130
Ending date: September 2010
Source: Methods & Tools Continuous Integration Tools Survey

A large majority of the participants is using continuous integration tools, but it remains to see how continuous is the continuous integration used by participants. It is easy to understand that this practice is one of the easiest to put in place as it is basically a pure technical issue of combining the build process with the unit testing tools. However, previous Methods & Tools unit testing execution surveys performed in 2006 and 2008 on showed that between 50% and 60% of participants were not using unit tests or were doing them in an informal way. Continuous integration could thus be considered by organizations more as a continuous build process that a continuous testing of the code quality.

Resources:

* Continuous Integration Feature Matrix
* Continuous Integration: The Cornerstone of a Great Shop
* Continuous Integration Tools directory

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.


Friday, 17 April 2009

Software Quality Assurance Planet

The Software Quality Assurance Planet is an aggregator for RSS feeds concerning software testing (unit testing, functional testing, regression testing, load testing), code review and inspection, bug and defect tracking, continuous integration.

Tuesday, 31 March 2009

Software Quality Assurance Zone

The Software Quality Assurance Zone is a repository for resources concerning software testing (unit testing, functional testing, regression testing, load testing), code review and inspection, bug and defect tracking, continuous integration. The content consists of articles, news, press releases, quotations, books reviews and links to articles, Web sites, tools, blogs, conferences and other elements concerning software quality assurance.