InfoQ Homepage Presentations Designing for Testability
Designing for Testability
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.
Community comments
I can't see any thing in video :(
by shao stone,
Re: I can't see any thing in video :(
by Floyd Marinescu,
Re: I can't see any thing in video :(
by hugo filho,
Re: I can't see any thing in video :(
by CENK CIVICI,
Re: I can't see any thing in video :(
by Yu Aaron,
TESTNG
by CENK CIVICI,
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.