File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11EXTRA_LOCK_ARGS? =
22EXTRA_DEPS? =
3+ EXTRA_COVERAGEPY_ARGS? =
34
45LOADED_DOT_ENV =@if [ -f .env ] ; then source .env; fi;
56
@@ -24,7 +25,7 @@ multitest:
2425
2526coverage :
2627 make deps; \
27- pdm run coverage run -m pytest; \
28+ pdm run coverage run $( EXTRA_COVERAGEPY_ARGS ) -m pytest; \
2829 pdm run coverage html; \
2930 pdm run coverage report -m
3031
Original file line number Diff line number Diff line change @@ -66,6 +66,15 @@ Please take a look at [the database documentation](../src/vectorcode/database/RE
6666which contains a brief introduction on the API design that explains what you'd need
6767to do to add support for a new database.
6868
69+ ### Coverage Across Mutiple Runs
70+
71+ If, for some reasons, you need to run the tests multiple times to get full coverage
72+ (maybe when there are conflicting dependency groups like chromadb 0.6.3 vs chromadb 1.x), you can pass ` --append ` flag to the ` coverage ` command.
73+ If you're using ` make coverage ` , you can set this flag via the ` EXTRA_COVERAGEPY_ARGS ` environment variable:
74+ ``` bash
75+ EXTRA_COVERAGEPY_ARGS=" --append" make coverage
76+ ```
77+
6978## Neovim Plugin
7079
7180At the moment, there isn't much to cover on here. As long as the code is
You can’t perform that action at this time.
0 commit comments