First of all I’ve always used JUnit and not TestNG. This post is not blaming on anything. It’s just pointing out the little stuff I had to do to make my eclipse works with TestNG.
- Install TestNG from eclipse marketplace and restart
- The @Test annotation has to be on it’s own line of the plugin won’t pick it up
- In assertEquals() (and I’m expecting all the others) expected vs actual values are actually exchanged
- You have to configure the Output Folder of eclipse to go under $project/target/target-classes or eclipse won’t pick it up.
That’s it for now.