[katello-devel] Code Coverage reports

florentin raud florentin.raud at gmail.com
Fri Jul 15 09:27:26 UTC 2011


On 15 July 2011 10:23, Lukas Zapletal <lzap at redhat.com> wrote:
> Hello,
>
> we have got coverage report now that runs every day:
>
> http://hudson.rhq.lab.eng.bos.redhat.com:8080/hudson/job/katello-coverage/Coverage_Report/
>
> http://bit.ly/oP7ZKR

Hi Lukas,

Still RH internal only :)
You might want to open it to the world to get contribution from the community.

Kind regards,
Flo

>
> The failing threshold is set to 60 % (we are 60.79 %6 now :-) so we get
> notified on the IRC channel. Yes, there is room only for improvement. I
> expect we will push this and I will be able to increase this threshold up in
> near future.
>
> Please note the work can be considered done if and only if:
>
>  1) there are unit tests pushed
>  2) all tests are passing >>> in Hudson <<<
>  3) code meets requirements :-)
>
> Now I recommend everybody to click through the report and find at least one
> red piece of his code and make a unit test for it. I will do it right now!
>
> OUR TARGET SCORE FOR JULY IS: 65 %
>
> Classes with the worse score are:
>
> app/models/hash_util.rb 35      17      40.00%  11.76%
> app/helpers/application_helper.rb       161     120     31.06%  15.00%
> app/models/ping.rb      74      43      37.84%  16.28%
> app/helpers/sync_schedules_helper.rb    27      12      59.26%  16.67%
> app/controllers/auto_complete_search.rb 30      17      53.33%  17.65%
> app/controllers/failed_authentication_controller.rb     39      16
> app/controllers/sort_column_list.rb  26      10      61.54%  20.00%
> app/controllers/products_controller.rb  91      64      38.46%  20.31%
> app/models/glue/pulp/sync_status.rb     33      19      51.52%  21.05%
> app/controllers/api/sync_controller.rb  86      54      39.53%  22.22%
> app/helpers/promotions_helper.rb        85      45      47.06%  22.22%
> app/controllers/api/status_controller.rb        28      13      60.71%
> app/controllers/sync_management_controller.rb    164     127     39.02%
> app/models/async_operation.rb    78      51      50.00%  25.49%
> app/controllers/api/root_controller.rb  22      7       68.18%  28.57%
> app/helpers/notices_helper.rb   21      7       71.43%  28.57%
> app/helpers/roles_helper.rb     38      21      60.53%  28.57%
> app/controllers/user_sessions_controller.rb     76      43      48.68%
> app/controllers/providers_controller.rb  186     142     38.17%  30.28%
> app/helpers/translation_helper.rb       27      13      66.67%  30.77%
> app/controllers/api/users_controller.rb 49      29      57.14%  31.03%
> app/models/tag.rb       37      16      56.76%  31.25%
> app/controllers/repositories_controller.rb      77      51      50.65%
> app/models/glue/pulp/repo.rb     210     159     47.14%  32.70%
> app/helpers/users_helper.rb     20      6       75.00%  33.33%
> app/models/glue/pulp/repos.rb   309     232     41.75%  35.78%
> app/controllers/certificates_controller.rb      26      11      73.08%
> app/controllers/entitlements_controller.rb       26      11      73.08%
> app/controllers/api/proxies_controller.rb        48      27      62.50%
> app/controllers/api/ping_controller.rb   24      8       70.83%  37.50%
> app/controllers/pools_controller.rb     22      8       77.27%  37.50%
> app/models/search_favorite.rb
>
> Btw if you are absolutely sure some portion of the code should NOT be
> covered you can use this block to ignore it:
>
> #:nocov:
>
> ...
>
> #:nocov:
>
> But don't tell anyone...
> --
> Later,
>
>  Lukas Zapletal | E32E400A
>  RHN Satellite Engineering
>  Red Hat Czech s.r.o. Brno
>
> _______________________________________________
> katello-devel mailing list
> katello-devel at redhat.com
> https://www.redhat.com/mailman/listinfo/katello-devel
>




More information about the katello-devel mailing list