Page MenuHomeSoftware Heritage

at least 80% SLOC coverage in all components
Started, Work in Progress, NormalPublic

Description

Here is the current state per repository (sorted per line coverage asc):

|----------------------+----------+------------|
| repository           | line (%) | branch (%) |
|----------------------+----------+------------|
| swh-journal          |       54 |         53 |
| swh-core             |       72 |         58 |
| swh-scheduler        |       66 |         50 |
| swh-lister           |       77 |         51 |
| swh-archiver         |       78 |         54 |
|----------------------+----------+------------|
| swh-vault            |       80 |         60 |
| swh-loader-core      |       84 |         53 |
| swh-loader-pypi      |       83 |         56 |
| swh-loader-mercurial |       84 |         64 |
| swh-loader-svn       |       85 |         61 |
| swh-deposit          |       87 |         71 |
| swh-loader-debian    |       84 |         77 |
| swh-loader-git       |       85 |         65 |
| swh-loader-dir       |       87 |         75 |
| swh-storage          |       89 |         82 |
| swh-web              |       88 |         74 |
| swh-indexer          |       91 |         81 |
| swh-objstorage       |       91 |         76 |
| swh-model            |       93 |         85 |
| swh-loader-tar       |       97 |         80 |
|----------------------+----------+------------|
| average              |    82.75 |       66.3 |
|----------------------+----------+------------|
#+TBLFM: @22$3=vmean(@2$3..@21$3)::@22$2=vmean(@2$2..@21$2)

Source: https://jenkins.softwareheritage.org/view/swh%20master/
Note:
That's an org-mode table (copy/paste in emacs), then C-c C-c in the #+ line (below the table) to refresh the computations

Details

Differential Revisions
D1111: Add tests for swh.core.db.

Event Timeline

douardda created this task.Dec 4 2018, 10:27 AM
ardumont updated the task description. (Show Details)Dec 4 2018, 11:54 AM

Tip: after running Tox in a repo, run coverage report -m to show which lines are not covered.

vlorentz triaged this task as Normal priority.Dec 5 2018, 3:27 PM

For the loader mercurial, there is a module swh.loader.mercurial.loader_verifier which is not production code.
It's there to test the loader manually, so that could either be probably moved to the tests and transformed into it or removed altogether.

ardumont updated the task description. (Show Details)Dec 7 2018, 6:35 PM
ardumont updated the task description. (Show Details)
ardumont updated the task description. (Show Details)Dec 10 2018, 2:01 PM
ardumont updated the task description. (Show Details)Dec 12 2018, 2:58 PM
zack renamed this task from 80% SLOC coverage to at least 80% SLOC coverage in all components.Dec 12 2018, 3:37 PM
ardumont changed the status of subtask T1219: add tests to git loader from Open to Work in Progress.Dec 17 2018, 12:01 PM
ardumont moved this task from Backlog to in progress on the Sprint 2018 12 board.Dec 17 2018, 12:03 PM
ardumont updated the task description. (Show Details)
ardumont changed the status of subtask T1430: Add tests for the Debian loader from Open to Work in Progress.Dec 17 2018, 1:58 PM
ardumont updated the task description. (Show Details)Dec 17 2018, 3:01 PM
ardumont updated the task description. (Show Details)Dec 17 2018, 3:06 PM
ardumont changed the task status from Open to Work in Progress.Tue, Feb 19, 2:44 PM
ardumont updated the task description. (Show Details)