mirror of
https://github.com/openvinotoolkit/stable-diffusion-webui.git
synced 2024-08-15 23:50:25 +03:00
5
Tests
Aarni Koskela edited this page 2023-06-02 08:40:52 +03:00
You can run tests to validate your modifications.
Post PR #10291, py.test 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
.