You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create ``test_cases.json`` to define test parameters. You can override variables in ``api.json`` using the ``inputs`` field. Here's an example:
132
132
@@ -168,15 +168,15 @@ To add a test case:
168
168
169
169
Run your test locally first (see :ref:`running-tests`). Use the local results as reference values. If you can only test one precision type (int4 or fp4), you can use the same reference values for both.
170
170
171
-
**4. Add Additional Test Data (if needed)**
171
+
4. Add Additional Test Data (if needed)
172
172
173
173
If your test requires additional input images or models:
174
174
175
175
- Upload input images to a GitHub PR comment to get a public URL
176
176
- Register the URLs in `test_data/inputs.yaml <https://github.com/nunchaku-tech/ComfyUI-nunchaku/blob/main/test_data/inputs.yaml>`__
177
177
- If new models are required, update `scripts/download_models.py <https://github.com/nunchaku-tech/ComfyUI-nunchaku/blob/main/scripts/download_models.py>`__ and `test_data/models.yaml <https://github.com/nunchaku-tech/ComfyUI-nunchaku/blob/main/test_data/models.yaml>`__
If your test requires additional ComfyUI custom nodes, register them in `test_data/custom_nodes.yaml <https://github.com/nunchaku-tech/ComfyUI-nunchaku/blob/main/test_data/custom_nodes.yaml>`__:
The ``scripts/setup_custom_nodes.py`` script automatically processes this configuration to:
189
+
The ``scripts/setup_custom_nodes.py`` script (which runs automatically during test workspace setup in Step 3) processes this configuration to:
190
190
191
191
- Clone custom node repositories into the test workspace
192
192
- Install Python dependencies from each node's ``requirements.txt`` (if present)
@@ -195,5 +195,3 @@ To add a test case:
195
195
**Dependency Management:**
196
196
197
197
By default, dependencies are installed from the custom node's ``requirements.txt``. To override this, create a file at ``test_data/dependencies/{node_name}.txt`` with your custom requirements. This is useful when the default requirements conflict with the test environment or need version pinning.
198
-
199
-
This script runs automatically during test workspace setup (Step 3).
0 commit comments