BT

Facilitating the Spread of Knowledge and Innovation in Professional Software Development

Write for InfoQ

Topics

Choose your language

InfoQ Homepage News Presentation: Designing for Testability

Presentation: Designing for Testability

Bookmarks

In this presentation from QCon San Francisco 2007, 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.

Watch Designing for Testability (53 minutes).

Rate this Article

Adoption
Style

Hello stranger!

You need to Register an InfoQ account or or login to post comments. But there's so much more behind being registered.

Get the most out of the InfoQ experience.

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Community comments

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

    by shao stone,

    Your message is awaiting moderation. Thank you for participating in the discussion.

    FYI

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

    by Floyd Marinescu,

    Your message is awaiting moderation. Thank you for participating in the discussion.

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

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

    by hugo filho,

    Your message is awaiting moderation. Thank you for participating in the discussion.

    There is material in this article?

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

    by CENK CIVICI,

    Your message is awaiting moderation. Thank you for participating in the discussion.

    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.

  • TESTNG

    by CENK CIVICI,

    Your message is awaiting moderation. Thank you for participating in the discussion.

    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.

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

    by Yu Aaron,

    Your message is awaiting moderation. Thank you for participating in the discussion.

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

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

BT