Need help with TestNG
Answered
Can someone please point me to a guide to using TestNG with IntelliJ Idea. I've been following the documentation and when I attempt to enable annotations (https://www.jetbrains.com/help/idea/enabling-annotations.html#d235740e17) I can't find the libraries (standard instillation on my Mac). I don't think I need a plugin - and TestNG comes active in the latest IntelliJ Idea build.
Can someone please point me to a guide?
Cheers,
Huck
Please sign in to leave a comment.
Does https://www.jetbrains.com/help/idea/configuring-testing-libraries.html help? If not, please clarify the problem.
First of all, let me say - thanks! Thank you for responding in such a quick tome frame. I didn't realize this community would be that useful.
Unfortunately, It does not help. I actually already did that.
I added to the class path:
but when I attempt to use annotations, I don't see the TestNG reference in the selection:
I will fully admit that I'm a n00b with TestNG. Am I missing something?
Cheers,
Huck
(and again, thanks for your assistance so far)
What's in testng library you've configured?
Do you have the tests in the Test Source root vs the Source Root? See https://www.jetbrains.com/help/idea/configuring-content-roots.html.
I didn't know I needed a Test Source Root....but now I do :)
Thanks making a Test Source root did the trick -
Thanks Serge!
YOU-DA-MAN!
Cheers,
Huck
Dependency having the Test scope will be visible only for the tests that are located in the Test Sources roots.
See https://www.jetbrains.com/help/idea/dependencies-tab.html for more details about the dependency scopes.