Anoop
Anoop

Reputation: 486

Intellij with TestNG report generation

I am not able to generate report using TestNG+Intellij 12, also provided out path in Run configuration. I have even updated to TestNG 6.8 by this way : https://stackoverflow.com/a/13452828/1434611

Can anyone provide some input if you are able to generate reports.

Screenshot

Upvotes: 14

Views: 35335

Answers (4)

ShiyamTJ
ShiyamTJ

Reputation: 786

At the top select the dropdown and click on edit configuration

enter image description here

Check on Use default reporters option Check on Use default reporters which is under listner tab option which will create test-output folder in your root folder with all reports.

Upvotes: 53

Helen Wt.
Helen Wt.

Reputation: 81

From Edit Configurations

  1. On the "Listeners tab", Use default listeners should be checked.
  2. And Output directory should be set correctly.

Upvotes: 6

Buzz
Buzz

Reputation: 180

One thing that you can consider to do is, that you check the checkbox under Listeners. This checkbox enables the automated reports. You have to change the default settings of TestNG run options to enable it for any additional runs after the first one. This solved my reporting problems.

Upvotes: 10

Kerry Jin
Kerry Jin

Reputation: 201

You can add Listener like "EmailableReporter" or "FailedReporter" in the "Run Configurations", it will generate test-output directory in your workspace.

I test it at Intellj IDEA 12.0.4

Upvotes: 6

Related Questions