xo-object: generative GC utest + reinstate coverage build
This commit is contained in:
parent
14ff9f9592
commit
e80304a09b
18 changed files with 625 additions and 28 deletions
|
|
@ -92,6 +92,11 @@ Aternatively can enter nix environment, then follow instructions for cmake build
|
|||
# etc
|
||||
|
||||
|
||||
coverage build
|
||||
--------------
|
||||
|
||||
See ``Test Coverage Setup`` under ``Development`` below
|
||||
|
||||
Development
|
||||
===========
|
||||
|
||||
|
|
@ -109,6 +114,30 @@ To setup xo-umbrella2 build to work with a language server:
|
|||
In this case subsystem LSP setup should be omitted, git root is ``path/to/xo-umbrella2``,
|
||||
not ``path/to/xo-umbrella2/xo-ratio`` etc.
|
||||
|
||||
Test Coverage Setup
|
||||
-------------------
|
||||
|
||||
To setup a unit test coverage build/ccov/all-merged
|
||||
|
||||
.. code-block::
|
||||
|
||||
# can reuse phase 1 cmake-macros-install
|
||||
|
||||
# phase 2
|
||||
$ cmake -B .build -S . -DCMAKE_INSTALL_PREFIX=$PREFIX -DCMAKE_BUILD_TYPE=coverage
|
||||
|
||||
Then run unit tests
|
||||
|
||||
$ (cd .build && ctest)
|
||||
|
||||
To build coverage report
|
||||
|
||||
$ (.build/gen-ccov)
|
||||
|
||||
Html report in ``.build/ccov/html/index.html``
|
||||
|
||||
|
||||
|
||||
Sphinx Autobuild Setup
|
||||
----------------------
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue