You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Analyzed the code with my own SonarQube instance and found it having a test coverage of just about 55%.
How to find out
For anyone interested by running this analysis on your own:
I did so by adding following lines within the <build> .... </build> tag of the pom.xml file.
@m007: Do you have any ideas to improve the test coverage? A lot of classes only print results in the console (all console.commands) and another big part relies on sending and receiving messages. As ECHOECHO doesn't reply to API messages (unfortunately) we can't test message sending and receiving.
But yeah, there is still room for improvement at the Exception classes and some other classes, but the major parts can't easily be tested.
From @m007 on March 27, 2015 9:0
Problem
Analyzed the code with my own SonarQube instance and found it having a test coverage of just about 55%.
How to find out
For anyone interested by running this analysis on your own:
I did so by adding following lines within the
<build> .... </build>
tag of thepom.xml
file.Needless to say that you need to have a running/configured SonarQube server.
How to fix
There should be more tests. Many more tests. In 2015 nothing less than 85% is reasonable. Maybe the code should be developed test first. See TDD.
Copied from original issue: threema-ch/threema-msgapi-sdk-java#1
The text was updated successfully, but these errors were encountered: