InfoQ

Presentation

   Good News: We have re-worked our video infrastructure to provide more reliable service. Please email bugs at infoq.com with any problems.

Recorded at:
Recorded at

Designing for Testability

Posted by Cedric Beust and Alexandru Popescu on Feb 28, 2008 09:00 AM

Community
Java
Topics
Software Testing,
Unit Testing
Tags
QCon San Francisco 2007,
TDD,
TestNG,
QCon
Summary
In this presentation from QCon San Francisco, Cedric Beust and Alexandru Popescu discuss interesting features of TestNG such as grouping of tests, data providers for tests and dependency handling in tests, tips for designing easily testable code such as eliminating statics, extreme encapsulation and TDD, the importance of functional versus unit testing, and migrating from JUnit to TestNG.

Bio
Cédric Beust is the co-founder of the TestNG framewwork, is a senior software engineer at Google, and holds a PhD in computer science. Alexandru Popescu is Chief-Architect of InfoQ.com, and is co-founder of the TestNG Framework and a committer on the WebWork and Magnolia projects.

About the conference
QCon is a conference that is organized by the community, for the community.The result is a high quality conference experience where a tremendous amount of attention and investment has gone into having the best content on the most important topics presented by the leaders in our community.QCon is designed with the technical depth and enterprise focus of interest to technical team leads, architects, and project managers.

6 comments

Reply

I can't see any thing in video :( by stone shao Posted Mar 1, 2008 12:36 AM
Re: I can't see any thing in video :( by Floyd Marinescu Posted Mar 2, 2008 3:07 PM
Re: I can't see any thing in video :( by hugo filho Posted Mar 4, 2008 7:54 AM
Re: I can't see any thing in video :( by CENK CIVICI Posted Mar 7, 2008 6:18 PM
Re: I can't see any thing in video :( by aaron yu Posted Mar 18, 2008 10:09 PM
TESTNG by CENK CIVICI Posted Mar 7, 2008 6:20 PM
  1. Back to top

    I can't see any thing in video :(

    Mar 1, 2008 12:36 AM by stone shao

    FYI

  2. Back to top

    Re: I can't see any thing in video :(

    Mar 2, 2008 3:07 PM by Floyd Marinescu

    You must disable any plugins that may be blocking flash programs.

  3. Back to top

    Re: I can't see any thing in video :(

    Mar 4, 2008 7:54 AM by hugo filho

    There is material in this article?

  4. Back to top

    Re: I can't see any thing in video :(

    Mar 7, 2008 6:18 PM by CENK CIVICI

    TDD leads to testable code by thinking tests first. That way you dont mess up code with static couplings, variables etc but Cedric instead talks against TDD and recommends write code first and and then change it to be testable when you start writing your test.

  5. Back to top

    TESTNG

    Mar 7, 2008 6:20 PM by CENK CIVICI

    I find TESTNG useful for functional testing tools like tests in the ui level using tools like Selenium where Dependent methods might be useful. But I dont think it is a very bad practice to have dependent tests in isolated focused unit tests.

  6. Back to top

    Re: I can't see any thing in video :(

    Mar 18, 2008 10:09 PM by aaron yu

    Yes, something wrong? I can't see it.

Exclusive Content

Tapestry for Nonbelievers

A new article by I. Drobiazko and R. Zubairov introduces v. 5 of the Apache Tapestry component-oriented web framework. The tutorial shows how to create a component and covers IoC in Tapestry and Ajax.

Pete Lacey on REST and Web Services

In this interview, Burton Group consultant Pete Lacey talks to Stefan Tilkov about his disillusionment with SOAP, his opinion on REST, and addresses some of the perceived shortcomings REST vs. WS-*.

Business Natural Languages Development in Ruby

Jay Fields presents his concept of Business Natural Languages - a type of Domain Specific Languages geared towards being readable by domain experts.

Distributed Version Control Systems: A Not-So-Quick Guide Through

Adoption and interest for Distributed Version Control Systems is constantly rising. We will introduce the concept of DVCS and have a look at 3 actors in the area: git, Mercurial and Bazaar.

Segundo Velasquez and Agile as Seen Through the Customer's Eyes

Deborah Hartmann interviewed Segundo Velasquez about his experience as customer with an Agile team during the initial phase of software design of a product.

Fine Grained Versioning with ClickOnce

David Cooksey shows how to fine grained versioning to a ClickOnce deployment using an HttpHandler written with ASP.NET, making partial rollouts to a test audience much easier.

Implementing Manual Activities in Windows Workflow

Windows workflow (WF) is an excellent framework for implementing business processes, but lacks support for human activities. This article describes a completely generic approach for changing this.

Markus Voelter about Software Architecture Documentation

In this interview taken during OOPSLA 2007, Markus Voelter talks about the importance of documenting the software architecture, and gives some good and also bad examples on how it could be done.