testdriven.com Wrangling quality out of chaos

Archive for February, 2004

Design and Test JDBC Code

02.28.2004 · Posted in Links

Bob Lee writes: "I have a few tricks up my sleeve that don’t demand a great deal of effort (no need to mock up InitialContext for example) but that do result in performant and maintainable tests. [..] Cutting out the network and minimizing the amount of test data has really paid off on my current project. My entire suite of JDBC test cases executes in under a second."


bwbUnit 1.0 released

02.27.2004 · Posted in Java

bwbUnit for Java is a set of components that supports both Black and White Box style of unit testing. Currently the primary component of bwbUnit is called PrivateProxy. It allows Java developers to access private/protected/package variables and methods very easily and without any extra configuration settings.

Other tools in the area require special proxy classes to be hand written or the java poloicy file to be updated. bwbUnit’s PrivateProxy doesn’t have these requirements, which makes it easier to learn and use.

This and all future componets will be developed in a way that allows them to snap into the JUnit framework or to be used as part of a custom testing application.

See http://spectorconsulting.com/bwbunit/

Unit-testing Hibernate mapping files

02.27.2004 · Posted in Links

Craig Walls writes: "I’ve caught the unit-testing bug and am immersing myself into everything I can find about it. I’ve been able to find plenty of stuff on how to test practically everything under the sun, except for one thing: Hibernate mapping files."


Advanced PHP Programming (Chapter on TDD)

02.27.2004 · Posted in Links

In addition to all the considerations with database access, session administration, etc., in PHP, Chapter 6 of the book covers the topic of test-driven development.

Author: George Schlossnagle
Published: December, 2003

Tags: ,

User Stories Applied

02.27.2004 · Posted in Links

This book describes how to establish user requirements that work, to save time and develop better software that meets users’ needs. Gathering user stories for acceptance tests and integrating them into an eXtreme Programming project contributes to its efficiency.

Author: Mike Cohn
Publication date: February 27, 2004
User Stories site: http://userstories.com/
User Stories group: http://groups.yahoo.com/group/userstories/

Tags: ,

jUnitour: JUnit skeleton generator

02.26.2004 · Posted in Links

This junit extension lets you create some tests or just their ‘skeleton’, mark them as ‘prepared’ by throwing an Exception, and develop your whole software continuously while concentrating on the main test. Meant to make your Xtreme programming process more effective, this tool also features an automatic report about missing / unfinished test cases.

SIGIST session on FIT

02.25.2004 · Posted in Events

Among other presentations on software testing at the SIGIST one-day conference, there will be a specific session on FIT, entitled Making the Document Test the Code.

"This presentation will introduce FIT and show how it can be used to test code against a set of criteria written-down by a customer. It will look at the reasons why you might want to use this tool in your project and also examine some of the pitfalls. The presentation will conclude with guidance on implementing FIT and obtaining any support you might need."

When: March 4
Where: London, UK

See Specialist Interest Group in Software Testing for information and registration.

One Assertion Per Test

02.24.2004 · Posted in Links

For some time I’ve been thinking about how TDD tests can be as simple, as expressive, and as elegant as possible. This article explores a bit about what it’s like to make tests as simple and decomposed as possible: aiming for a single assertion in each test.

Author: Dave Astels
Published: February 23, 2004

Unit Testing in PHP

02.22.2004 · Posted in Links

This article uses Vincent Oostindië’s PHPUnit to present the basics of test-driven development in PHP, through sample code testing the ValidateUser class.

Author: Harry Fuecks
Published: June, 2003

Managed Developer Testing

02.22.2004 · Posted in Links

This Developer Testing Note introduces the concept of Managed Developer Testing, a set of management practices supported by automated tools which I believe are essential to make a developer testing effort successful.

Published: December 27, 2003


StrutsTestCase: Drilled-down Testing for Struts-based Java Apps

02.22.2004 · Posted in Links

This article demonstrates both mock testing and in-container testing of Web-based applications built with the Struts Model-View-Controller framework. StrutsTestCase, a small testing library that builds on top of the JUnit testing framework, allows you to perform both testing methodologies on Struts applications.

Author: Wellie Chao
Published: February 19, 2004

Jenerator: Java Code generator

02.21.2004 · Posted in Links

The Jenerator Version 0.9 is a code generator (Licensed under the Academic Free License version 1.1) and hosted on SourceForge, which takes meta information from different mediums, applies XSL templates and generates code.

Unlike other code generators, which use JavaDoc custom tags to define and describe what is to be generated, Jenerator uses XML based Descriptor files. In some cases it even generates the Jenerator Descriptor file for you.

Examples: in case of Entity Beans, the Jenerator fetches the meta information from the Database and converts the meta information into a Jenerator Descriptor file, which the developer can customize or use it as it is with default configuration.

In case of Session Beans, Pattern generation etc, the developer has to make the Jenerator descriptor file manually.

For generating EJB’s the Jenerator Descriptor grammar is very much similar to the EJB deployment descriptor i.e. ejb-jar.xml.

Therefore to learn configuring the Jenerator descriptor the learning curve is greatly minimized. Moreover one needs to just do all the configurations outside the code, in a single descriptor file: one each for EJB, pattern and presentation layer code generation.

Testing for Programmers

02.20.2004 · Posted in Links

This thorough tutorial, written and presented by a veteran tester, discusses the virtues of testing and test-first practice, and more generally, common pitfalls in testing.

Author: Brian Marick
Published: 2000

.NET MockObjects

02.20.2004 · Posted in Links

The .NET Mock Objects project is a .NET framework whose goal is to facilitate developing unit tests in the mock object style.

See also the .NET MockObjects wiki at http://dotnetmock.sourceforge.net/tikiwiki/tiki-index.php

Database testing strategy in build

02.19.2004 · Posted in Links

Vincent Massol writes:

"Applying a working build strategy for testing against a database is not easy. It depends on the complexity of the database model, it depends on the size of the teams. However, I’ve found that the strategy described below is the one that has worked the best for the projects I have been involved in."


Pacific Northwest Software Quality Conference 2004 to lay more emphasis on TDD

02.19.2004 · Posted in Events

Bret Pettichord is enthusiastic about the next PNSQC:

"Over the past two years, i have had dozens of interesting conversations with test-infected programmers. Many of these occurred at small workshops, many of which i hosted myself. I have also gotten a lot out of the XP Agile Universe conference the past two years, but i hesitate to recommend it to many of my tester friends who are put off by some of the religious trappings of XP.

I would, however, like to see these kinds of discussions become more commonplace. Testers have a lot to learn from test-driven developers and programmers have a lot to learn from committed testers. PNSQC may very well be the best place to have this discussion on a large scale."

Conference location: Portland, OR
Date: October 11-13, 2004
Visit the Pacific Northwest Software Quality Conference web site.
Read the proceedings of past conferences.

Announcing The Better Software Conference & EXPO

02.18.2004 · Posted in Events

The International Conference on the Software Development Lifecycle will take place September 27-30, 2004, at The Fairmont Hotel in San Jose, California. The Better Software Conference & EXPO brings software professionals together to learn about the current technologies, trends, and issues regarding all aspects of the software development lifecycle.The conference will cover project management, configuration and change management, requirements, architecture and design, quality, process improvement, measurement and many other areas of topical interest. Businesses require higher quality software that not only meets their needs but also is delivered on time with measurable results and maximum value. The Better Software Conference & EXPO is geared to assist software professionals in finding solutions to achieve these goals and to improve efficiency and product value.

The EXPO on September 29-30 offers exposure to solutions providers, industry experts, and a top-notch network of peers, all sharing ideas on how to take users and developers through the various stages of the software (applications) development lifecycle.

About Software Quality Engineering

The Better Software Conference & EXPO is produced by Software Quality Engineering. Software Quality Engineering assists software professionals and organizations interested in improving customer service, boosting productivity, and improving the return on IT capital investments through better software quality practices.

In addition to organizing The Better Software Conference & EXPO, Software Quality Engineering hosts the STAR conference series on software testing, analysis, and review. Software Quality Engineering also delivers software testing and development seminars, provides consulting services, specialized publications, and research. Its publishing division produces Better Software magazine, the StickyMinds.com Web site, as well as various industry eNewsletters and reference books.

Visit our Web site for a complete list of products and services: http://www.sqe.com

Attending Software Quality Engineering Events

Press passes are offered to contributing writers who have the required credentials and who will be writing about a Software Quality Engineering conference event. All press personnel must be pre-qualified and pre-registered.

A press pass admits working media, free of charge, to all exhibits, keynotes, conference sessions, lunches, special events, and press-only events.

To apply for a press pass to a Software Quality Engineering conference event, apply here http://www.sqe.com/presspass.asp or email mwerley@sqe.com.

Meisha Werley, Public Relations Manager
Tel: (904) 278-0524 ext. 213