Commit Graph

9 Commits

Author SHA1 Message Date
Kyle Altendorf
ed23454f3d
coverage ignore benchmark tests (#17064) 2023-12-14 11:15:53 -06:00
Kyle Altendorf
5fbc0c4c0d
add disable_warnings=module-not-measured to .coveragerc (#16728) 2023-11-01 11:40:17 -05:00
Kyle Altendorf
a1edda5c3d
datalayer test coverage (#16645)
Co-authored-by: Earle Lowe <30607889+emlowe@users.noreply.github.com>
2023-10-30 08:50:58 -07:00
Kyle Altendorf
74b02fa44e
test installed code, not source (#15532)
* explore testing installed code, not source

* non-editable install

* hmm

* yup

* bash it up

* test-single.yml: defaults: run: shell: bash

* try removing windows specific steps

* env.GITHUB_WORKSPACE

* Update test-single.yml

* Update test-single.yml

* Update test-single.yml

* also Install.ps1

* ,

* more

* Update test-single.yml

* Update .coveragerc

* whitespace
2023-07-24 20:02:00 -05:00
Kyle Altendorf
7a830389c9
coverage ignore if TYPE_CHECKING: (#15473) 2023-06-09 05:13:08 -05:00
dustinface
ff2d87e6ab
coverage: Add thread to concurrency (#15453) 2023-06-09 05:12:31 -05:00
Kyle Altendorf
27b2079c20
don't measure coverage of CI tests/**/config.py files (#15463) 2023-06-07 14:08:32 -05:00
Kyle Altendorf
e8262e945f
coverage use [run] source_pkgs= instead of source= (#14164)
This avoids some collisions in some coverage reports between files in `chia/` and `tests/`.  Minimal example in https://github.com/altendky/example001 and "real" trouble observed in https://github.com/Chia-Network/chia-blockchain/pull/14141/files.
2023-01-06 16:59:41 -06:00
Kyle Altendorf
36bee1b8ca
run tests in CI via coverage (#9704)
* Add coverage (without collection)

* Separate test_block_compression() to avoid coverage-related hangs

* Revert "Separate test_block_compression() to avoid coverage-related hangs"

This reverts commit ebad3d0017.

* multiprocessing.set_start_method("spawn")

* multiprocessing.set_start_method() in conftest.py

* hand hold cc wallet tests

* lint

* spawn for running chia as well

* handle already set start method case

* a bit more timeout for test_multiple_writers

* more timeout for test_writer_lock_blocked_by_readers

* 45 minute tieout for tests/pools/

* 45 minute tieout for tests/pools/

* some more hand holding sleeps

* report coverage in each workflow

only really useful to make sure it is capturing something

* oops

* complete the job name and the JOB_NAME

* better coverage result file names

* reset worker process titles

* rebuild workflows

* rebuild workflows

* black

* black

* rebuild workflows

* push timeouts

* actually include the updated workflows...

* push more workflow timeouts

* parallel=True

* rebuild workflows
2022-03-28 13:22:23 -07:00