thank you for writing pytest-console-scripts #81
Replies: 4 comments 10 replies
-
|
Discussions is probably better for this. Unless this wasn't just an appreciation post. I'm glad pytest-console-scripts is working well for you. I started using it myself since I was maintaining a project which had its own script runner implementation and I really wanted it to be in a central place rather than having this giant specialized tool just sitting there in the tests. I was able covert everything to use pytest-console-scripts pretty quickly and easily. Printing the stdout/stderr outputs so that they show up on pytest test failures is definitely the best feature of it. |
Beta Was this translation helpful? Give feedback.
-
|
Thanks for moving the post to discussions. Here is nice output I got: click.CliRunner was obfuscating improper formatting of a toml file as a file error without a chance of finding where the error was, I was able to fix with pytest-console-scripts in munites (couple hours spent with click.CliRunner on this). I also like the cleanliness of interface |
Beta Was this translation helpful? Give feedback.
-
|
As a contribution idea I could do a PR with some notes to README.md about using |
Beta Was this translation helpful? Give feedback.
-
|
Thanks for giving this project a try, @epogrebnyak! If you've found it recently, you got lucky -- pytest-console-scripts just has got a lot nicer with the many contributions from @HexDecimal :) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm stuck with testing a click app with CliRunner in a case where a script executes when run from console, but fails as pytest with ambiguous message, so I was looking for a pytest plugin desperately.
Very intuitive interface of pytest-console-scripts and docs addressing the user needs,
result.print()should be a savior.Thank you for putting this valuable project together.
Beta Was this translation helpful? Give feedback.
All reactions