Universal-test-runner

Latest version: v0.6.2

Safety actively analyzes 685525 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 2

0.6.2

_released `2024-09-12`_

- ❗️ BREAKING: prioritize `pytest` before Django's `./manage.py test`. `pytest` can run Django tests via [django-pytest](https://pytest-django.readthedocs.io/en/latest/), but not the other way around
- ❗️ BREAKING: stop looking for the `tests.py` file, which isn't a standard test location. Instead, if there are any python-related files (such as `pyproject.toml` or `.venv`), run `python -m unittest`
- add better `pytest` detection in projects without a `.pytest-cache` (https://github.com/xavdid/universal-test-runner/pull/7)
- add support for justfiles with non-default names:
- `Justfile`
- `.justfile`
- flush the stream after sending the screen-clearing escape sequence, which should fix issues where buffered output from test runners is cleared when it shouldn't be
- ❗ BREAKING: tweak how `UTR_CLEAR_PRE_RUN` and `UTR_DISABLE_ECHO` are read from the environment. Previously, _any_ set value would engage the option. Now, any value other than `0` is considered "present". So, if you were setting them to `0` before in the hopes of activating those options, set them to `1` instead

0.6.1

_released `2024-08-14`_

- add support for the `UTR_CLEAR_PRE_RUN` environment variable, which clears the terminal (and scrollback) before running the test

0.6.0

_released `2023-12-06`_

- add support for [bun](https://bun.sh/), which runs `bun test` when it sees a `bun.lockb`
- add support for my [Advent of Code runner](https://github.com/xavdid/advent-of-code)

0.5.1

_released `2023-08-11`_

- include `--` after the `exercism test` command, so args are correctly passed through to the underlying test command (e.g. `t --include pending` runs `exercism test -- --include-pending`) ([6](https://github.com/xavdid/universal-test-runner/pull/6))

0.5.0

_released `2023-08-03`_

- add support for [Exercism](https://exercism.org/)'s new `exercism test` CLI command. Read more [in the docs](https://github.com/xavdid/universal-test-runner#exercism) ([5](https://github.com/xavdid/universal-test-runner/pull/5)).

0.4.0

_released `2023-07-01`_

- ❗ BREAKING: prioritize `Makefile` (and `justfile`) over running any tools directly. ([3](https://github.com/xavdid/universal-test-runner/pull/3))
- This is likely a non-issue unless you have a `Makefile` _and_ an already-supported language and preferred circumventing `make`
- in that case, use a recipe name besides `test`
- add django support (https://github.com/xavdid/universal-test-runner/pull/1) and ensure it takes precedence over more generic python testing methods ([223d709](https://github.com/xavdid/universal-test-runner/commit/223d709e17882d56c6efcaa42e07c4bb300f1742))
- add [justfile](https://github.com/casey/just) support. Make sure your `test` recipe [accepts arguments](https://github.com/xavdid/universal-test-runner#just-errors-when-passing-cli-args) ([3](https://github.com/xavdid/universal-test-runner/pull/3), [#4](https://github.com/xavdid/universal-test-runner/pull/4))
- print the command being run; disable by setting `UTR_DISABLE_ECHO` in the environment (https://github.com/xavdid/universal-test-runner/pull/2)
- specify `utf-8` encoding when opening files for wider windows compatibility ([2475e94](https://github.com/xavdid/universal-test-runner/commit/2475e94))

Page 1 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.