From 8574031a2940a17f9a46a2326b33d91ff735af83 Mon Sep 17 00:00:00 2001 From: Charles Cooper Date: Mon, 13 Jan 2025 10:11:42 -0500 Subject: [PATCH] chore[docs]: update readme about testing - add comments to `quicktest.sh` explaining usage. - remove tests_require from `setup.py` as that has been deprecated - update readme to reference quicktest.sh --- README.md | 2 +- quicktest.sh | 11 ++++++++++- setup.py | 1 - 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 84c2948ceb..827d40d549 100644 --- a/README.md +++ b/README.md @@ -50,7 +50,7 @@ be a bit behind the latest version found in the master branch of this repository ```bash make dev-init -python setup.py test +./quicktest.sh -m "not fuzzing" ``` ## Developing (working on the compiler) diff --git a/quicktest.sh b/quicktest.sh index cd3aad1f15..af928f5d7c 100755 --- a/quicktest.sh +++ b/quicktest.sh @@ -2,8 +2,17 @@ # examples: # ./quicktest.sh +# ./quicktest.sh -m "not fuzzing" +# ./quicktest.sh -m "not fuzzing" -n (this is the most useful) +# ./quicktest.sh -m "not fuzzing" -n0 # ./quicktest.sh tests/.../mytest.py # run pytest but bail out on first error -# useful for dev workflow +# useful for dev workflow. + pytest -q -s --instafail -x --disable-warnings "$@" + +# useful options include: +# -n0 (uses only one core but faster startup) +# -nauto (uses only one core but faster startup) +# -m "not fuzzing" - skip slow/fuzzing tests diff --git a/setup.py b/setup.py index 5b1ae1b81a..e6006a959f 100644 --- a/setup.py +++ b/setup.py @@ -99,7 +99,6 @@ def _global_version(version): "wheel", ], setup_requires=["pytest-runner", "setuptools_scm>=7.1.0,<8.0.0"], - tests_require=extras_require["test"], extras_require=extras_require, entry_points={ "console_scripts": [