It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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

Gokul dhas Jackz Nov 24, 2015

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

0 votes
Answer accepted
Gokul dhas Jackz Nov 27, 2015

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 votes
Grzegorz Lewandowski Atlassian Team Nov 25, 2015

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 

Gokul dhas Jackz Nov 25, 2015

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

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Opsgenie

Introducing Postmortems for Opsgenie

When incidents happen, it is crucial to diagnose and solve the problem as fast as possible. Equally important to this, teams need a way to reflect on why the incident occurred and how they can improv...

243 views 0 6
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you