InfoQ

Presentation

Recorded at:
Recorded at

Designing for Testability

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

Community
Java
Topics
Unit Testing ,
Software Testing
Tags
TestNG ,
QCon San Francisco 2007 ,
QCon ,
TDD
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.

Educational Content

JRuby: The Pain of Bringing an Off-Platform Dynamic Language to the JVM

Charles Nutter discusses bringing JRuby to the JVM, why Ruby is hard to implement, JIT compilation, precompilation, core Ruby implementation, Java library access, library challenges and future plans.

Performance Anti-Patterns in Database-Driven Applications

Alois Reitbauer specifies several architectural anti-patterns that one should stay away from and which can downgrade an application’s performance.

Making TDD Stick: Problems and Solutions for Adopters

Teams in large organizations still struggle to adopt TDD. In this article Mark Levison shares problems he uncovered when he surveyed teams, and his own strategy to introduce TDD into an organization.

Testing is Overrated

In this talk from RubyFringe, Luke Francl asks: is developer-driven testing really the best way to find software defects? Or is the emphasis on testing and test coverage barking up the wrong tree?

VM Optimizations for Language Designers

John Pampuch discusses the HotSpot compiler, the history of Java performance, HotSpot development philosophies and challenges, optimization, JVM library improvements, and tips for better performance.

Keith Braithwaite, an Agile Skeptic

In this interview, Keith Braithwaite, an Agile developer, consultant and trainer, says that we should show a good deal of skepticism towards today’s Agile practice.

Workflow Orchestration Using Spring AOP and AspectJ

This article demonstrates how to build and orchestrate highly configurable and extensible yet light-weight embedded process flow using AOP techniques with Spring AOP and Aspect J.

Embrace Uncertainty

Jeff Patton explains why one needs to embrace uncertainty in order to succeed with his/her Agile project and how to avoid some of the common mistakes leading to project failure.