All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- Dropped support for Python 3.7 #72
- Fix loading scripts with non-UTF-8 encodings. #77
- Print output when a subprocess runner with
check=True
fails was missing. #78
- Added type-hinting for all types,
pytest_console_scripts.ScriptRunner
can now be used to hint thescript_runner
fixture. #62 - Added support for the
shell
andcheck
keywords for in-process mode. These behave as similarly tosubprocess.run
as possible. - Script runners now take command arguments similar to
subprocess.run
, including support for PathLike objects. #69
- Passing command arguments in
*args
is now deprecated and will raise warnings. These should be wrapped in a list or tuple from now on, similar tosubprocess.run
. #69
- Dropped support for Python 3.6 #61
- Install-time dependencies have been fixed. #56
- Removed
mock
dependency. #53
- Added
python_requires
to the project. #51
- Add
print
method to allow results to be manually printed. #49
- Avoid overwriting the global logging config of tested scripts. #48
- Drop support for Python 3.5
- Locate the Python interpreter through sys.executable
- Do not rely on the Python interpreter being called
python
, as that command does not exist in certain environments.
- Add option to suppress printing script run results. #41
- Support scripts that are not in
console_scripts
. #17