The presentation was about the use and the features that TestNG bruings. He spoke of the reason he started to work on TestNG, which ofcourse the progarmmers who write tests know very well: many drowbacks and many lacks. He told us about what TestNG can do : group tests, provide parameters to test methods, provide data to tests by means of a DataProvider and also it is possible to define dependences between tests like the example he mentioned concerning a simple database test : connect, insert, findById, delete.
TestNG makes testing more flexibile and more Object oriented. And this is a good ting because now it is very important that a new project is thought from the begining to be able to be tested.
He also said that they collaborated very whel with the people from JUnit and that some features form JUnit 4 are their ideas and also the features they added to unit testing are a product of the JUnit people experience and their and the community of programmers experience.
TestNG also integrates JUnit tests, because if a project wants to pass from JUnit tests to TestNG and they already have hundreds of JUnit tests, these tests most defenetly must not be rewriten!
What I noticed is that Alexandru Popescu is very open to sugestions from programmers and he tryes to accomplish their demands as fast as possible and I consider that this is a very good thing. Also, he was very open to questions, and among those questions there was an interesting one : In what do you write the tests for the code you write for TestNG? and the answer was even better: in TestNG :).
I am very glad that I could take place at this presentation and most definetly whenever I think that some feature in TestNG should be added I will contact him.
TestNG site: http://testng.org/doc/

No comments:
Post a Comment