From 10bf10ebc9c42a1e601a559aa2ad2942d789e2e9 Mon Sep 17 00:00:00 2001 From: Aarni Koskela Date: Sun, 21 May 2023 19:13:32 +0300 Subject: [PATCH] Add post-10291 test instructions --- Tests.md | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/Tests.md b/Tests.md index 775678e..88612e4 100644 --- a/Tests.md +++ b/Tests.md @@ -1,4 +1,15 @@ -You can run tests to validate your modifications to weubi. +You can run tests to validate your modifications. + + +## dev + +Post [PR #10291](https://github.com/AUTOMATIC1111/stable-diffusion-webui/pull/10291), [py.test](https://docs.pytest.org/en/7.3.x/) is used as the test runner. Testing dependencies are in `requirements-test.txt`, so `pip install -r requirements-test.txt` first. + +Most of the tests run against a live instance of the WebUI. You can start the WebUI server with a suitable baseline configuration with the `--test-server` argument, but you may want to add e.g. `--use-cpu all --no-half` depending on your system. + +Once the server is running, you can run tests with just `py.test`. + +## master To run tests, add `--tests TESTS_DIR` as a commandline argument to `launch.py` along with your other command line arguments.