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).
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.