Skip to content

Development

Riley edited this page Mar 23, 2024 · 2 revisions

Running tests

Run tox -e pytest to run unit tests. It can take a long time depending on the amount of test data in tests/test_data.

To run a single test, you can do for example:

pytest -v tests/test_matcher.py::test_get_base_name

To specify the testing data set to use, set DATA_SET environment variable to the desired name. For example, to run the example data set:

DATA_SET=example pytest -v -n auto tests/test_matcher.py::test_find_item_contains_item

or use the helper script: python3 run_tests.py which lets you pick the data set interactively.

Building for Windows

  1. Go to screen/ and run cargo build --release
  2. Copy screen/target/release/screen.exe to the root folder
  3. Run build.bat
  4. Open um_inst.iss in Inno Setup and click Compile
  5. The resulting installer should be ready and contain everything necessary to run Unique Matcher on Windows
Clone this wiki locally