mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2024-12-29 19:05:05 +08:00
Add post-10291 test instructions
parent
ad8cadccae
commit
10bf10ebc9
13
Tests.md
13
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.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user