Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
version: "0.9.29"
version: "0.11.2"

- name: Run tests
run: uv run --extra=solrcloud run-tests.py
26 changes: 23 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -279,8 +279,20 @@ For consistency, this project uses `pre-commit <https://pre-commit.com/>`_ to ma
Running Tests
=============

The ``run-tests.py`` script will automatically perform the steps below and is
recommended for testing by default unless you need more control.
This project uses ``pytest`` and is typically run via ``uv``.

First, install ``uv`` by following the official installation guide:

https://docs.astral.sh/uv/getting-started/installation/

The ``run-tests.py`` script automatically performs the steps below and is
recommended for running the tests unless you need more control.

You can run it with:

.. code-block:: console

$ uv run --extra=solrcloud run-tests.py

Running a test Solr instance
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Expand All @@ -301,6 +313,14 @@ To stop and remove the Solr test environment::
Running the tests
~~~~~~~~~~~~~~~~~

Run the standard test suite with:

.. code-block:: console

$ uv run pytest

To run the SolrCloud tests in addition to the standard test suite, enable the `solrcloud` extra:

.. code-block:: console

$ python -m unittest tests
$ uv run --extra=solrcloud pytest