[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#762951: debsources: increase/maximize test coverage



Package: qa.debian.org
Severity: wishlist
User: qa.debian.org@packages.debian.org
Usertags: debsources

Debsources' test coverage is decent:

  /srv/debsources$ nosetests --with-coverage debsources/ -v --cover-package=debsources
  [...]
  /srv/debsources$ python-coverage report 
  Name                                            Stmts   Miss  Cover
  -------------------------------------------------------------------
  debsources/__init__                                 2      0   100%
  debsources/app/__init__                             2      0   100%
  debsources/app/app_factory                         40      3    93%
  debsources/app/extract_stats                        9      0   100%
  debsources/app/forms                                5      0   100%
  debsources/app/infobox                             54     11    80%
  debsources/app/pagination                          20      1    95%
  debsources/app/sourcecode                          71     32    55%
  debsources/app/views                              342     67    80%
  debsources/archiver                               104     22    79%
  debsources/charts                                  42     30    29%
  debsources/consts                                   9      0   100%
  debsources/dbutils                                 51      1    98%
  debsources/debmirror                              128     34    73%
  debsources/excepts                                 16      0   100%
  debsources/filetype                                58     23    60%
  debsources/fs_storage                              68     20    71%
  debsources/hashutil                                20      8    60%
  debsources/local_info                              17      3    82%
  debsources/mainlib                                145     77    47%
  debsources/models                                 328     25    92%
  debsources/plugins/__init__                         0      0   100%
  debsources/plugins/hook_checksums                  73      7    90%
  debsources/plugins/hook_ctags                      99     14    86%
  debsources/plugins/hook_hello                      10     10     0%
  debsources/plugins/hook_metrics                    51      0   100%
  debsources/plugins/hook_sloccount                  70      7    90%
  debsources/sqla_session                             8      0   100%
  debsources/statistics                             157     35    78%
  debsources/subprocess_workaround                    3      1    67%
  debsources/tests/__init__                           0      0   100%
  debsources/tests/db_testing                        43      4    91%
  debsources/tests/test_archiver                    118      0   100%
  debsources/tests/test_stats                        71      0   100%
  debsources/tests/test_updater                     164      8    95%
  debsources/tests/test_webapp                      153      1    99%
  debsources/tests/testdata                           4      0   100%
  debsources/tests/updater_testing                    6      0   100%
  debsources/updater                                318     69    78%
  -------------------------------------------------------------------
  TOTAL                                            2879    513    82%

But still short of 100%, which is required to give some basic guarantees
of code well-formedness.

Please increase (and/or maximize to 100%) Debsources' test coverage.

FWIW, the first command shown above will give hints of the lines of code
which are currently not exercised by the test suite. Patches that add
new tests touching those lines are more than welcome.

Cheers.

-- System Information:
Debian Release: jessie/sid
  APT prefers testing
  APT policy: (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.14-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash


Reply to: