Add post-10291 test instructions

Aarni Koskela 2023-05-21 19:13:32 +03:00
parent ad8cadccae
commit 10bf10ebc9

@ -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.