[elbe-devel] [PATCH 00/11] elbe-ci - Coverage of Elbe

Olivier Dion dion at linutronix.de
Mon Aug 17 18:20:09 CEST 2020


This set of patches introduce Elbe to python-coverage [1].  It allows to
measure which lines of codes have been executed while running
elbe-test.  Missing branches are not yet supported.

This also applies to execution in the initvm and all recursive
execution of Elbe!

Please refers to 'cov: Introduce elbe-ci coverage' for details on how
all of this work and current caveats.

[1] python-coverage: <https://coverage.readthedocs.io/en/coverage-4.5.4/>

Notes:

    This patch set is currently rebased on some fixes
    (pending on the ML).  Thus it will not work if you
    simply git-apply it.  You can try it for yourself on
    branch devel/dion/tests.  Then do 'elbe test -l INITVM'.
    You should get a coverage-report.txt

Olivier Dion (11):
  cov: Introduce elbe-ci coverage
  elbe: Use ElbeCoverage
  commands: test: Add elbe-ci coverage
  tests: test_xml: Add coverage to simple xml test
  initvmaction: Set coverage option on project creation
  commands: control: Add enable coverage option
  soapclient: Add enable coverage option
  daemons: soap: esoap: Add enable coverage for new_project()
  projectmanager: Create en-coverage in new projects if coverage is
    enabled
  elbeproject: Add en_coverage attribute
  asyncworker: Use ElbeCoverage

 elbe                           |  74 +++++++-------
 elbepack/asyncworker.py        |   5 +-
 elbepack/commands/control.py   |   3 +
 elbepack/commands/test.py      |  92 +++++++++---------
 elbepack/cov.py                | 173 +++++++++++++++++++++++++++++++++
 elbepack/daemons/soap/esoap.py |   6 +-
 elbepack/elbeproject.py        |   2 +
 elbepack/initvmaction.py       |  10 +-
 elbepack/projectmanager.py     |   4 +-
 elbepack/soapclient.py         |  19 ++--
 elbepack/tests/test_xml.py     |  21 ++--
 11 files changed, 307 insertions(+), 102 deletions(-)
 create mode 100644 elbepack/cov.py

-- 
2.28.0



More information about the elbe-devel mailing list