kvas-it / pytest-console-scripts

Pytest plugin for testing console scripts
MIT License
78 stars 14 forks source link

Print output when a subprocess runner with check=True fails. #78

Closed HexDecimal closed 1 year ago

HexDecimal commented 1 year ago

The raised exception from subprocess.run was suppressing the printed output. This is now fixed and covered by tests.

Also updates the test to use non-deprecated script runner parameters.

codecov[bot] commented 1 year ago

Codecov Report

Merging #78 (d6ad0f9) into master (db5bf30) will increase coverage by 0.00%. The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master      #78   +/-   ##
=======================================
  Coverage   99.53%   99.54%           
=======================================
  Files           1        1           
  Lines         214      218    +4     
=======================================
+ Hits          213      217    +4     
  Misses          1        1           
Impacted Files Coverage Δ
pytest_console_scripts/__init__.py 99.54% <100.00%> (+<0.01%) :arrow_up: