Some of TestNG classes comes in Application code TAB instant of Test Code TAB in clover report

After generating report we are getting the some of the TestNG file in Application tab in the clover report. Those are missed out from Test Code and Test Result tabs.

Do we have any special standard to flow to write the TestNG file.?

 Could you please help on this. Thank you.

2 answers

1 accepted

For this we got a solution: (100% works)

1.We name the test case Java files end with Test. (Eg. FTPConnectionTest.java )

2. And the @test annotation method should Public method. If you added private method it fall in Application code in report.      Refer Grzegorz Lewandowski [Atlassian] answer also fro detection algorithm.

0 vote

By default Clover uses default test code detection algorithm and every file which doesn't match test code according this algorithm is marked as production code.

You can modify default behavior with testsources configuration 

Thank for your command and support. This might useful for us.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Tuesday in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

139 views 1 17
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you