Bored with JUnit ??? Try TestNG .
In STS:
1. pres Help in menu.
2. Install new software
3. in URL field type : http://beust.com/eclipse and click Add (STS will ask you to add name... choose what you want,be if you creative is not your strong point type: testng)
4. Select testng
5. Press nexts as many times as it required (You need agree for terms and agree that you use unsign stuff)
6. Press finish
7. restart STS , Eclipse
Done it! You can now have a legendary tests with TestNG
if you need quick tutorial .Use mykong's website that contains basic tutorial:
http://www.mkyong.com/tutorials/testng-tutorials/
[UPDATE 1]
*I strike first part of sentence as I need use spend more time with TestNG to have a proper opinion about it.
So far ,it didn't work perfectly well on Netbeans.I using at TestNG in Eclipse and it seems to not
Thanks to Tomek from http://kaczanowscy.pl/tomek/node for interesting presentation (can be found in comment).
[UPDATE 2]
It is possible to install TestNG through Eclipse Marketplace* now and it is much easier!
Thank you for Olivier Billard's comment to inform me about it!
* WOW . I am surprised that Eclipse Marketplace still exists and somebody actually used it .It is worst 'advertised' feature ever introduced. When I discovered this (it was during reading some article about Java ,where autor of this post was surprised that .. it still exists and to make things more funny most comments were " I didn't know that Eclipse Marketplace exists ". Eclipse Marketplace sounds like great idea,but implementation and advertising was in Eclipse style.
Hello,
ReplyDeleteI'm surprised you haven't found anything overexcited about TestNG. There are few things that are much better than what JUnit offers. See here http://kaczanowscy.pl/tomek/2012-04/why-testng-and-not-junit
Cheers!
Well.
DeleteThanks for comment.
Reason are quite simple.
1)
My tests are very simply ,so haven't use a real power of TestNG features (as you mention in your awesome presentation).
2)
TestNG and Netbeans was not a best friend at the moment,but as far as i am aware of,it should be better in next release of Netbeans.
but...
As you discovered ,I installed TestNG recently as is used in current project which i am working on at work and .. I planning learn it by using on my java project or android project (if is possible).
So I need time before I will have own opinion about testing tools as i need improve my skills in this field .
Hi and thanks for your post.
ReplyDeleteJust for the record, you can now find the same TestNG plugin through the Eclipse Marketplace, installation is quicker and easier.
Thanks to let me know :)
Delete