-
Notifications
You must be signed in to change notification settings - Fork 21
Future of assert_cli #41
Comments
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Pinging some people who used assert_cli in their projects (found using Github search): We are thinking about doing a 1.0 release and would love to hear your opinion on the crate and ideas for its future!
|
This comment has been minimized.
This comment has been minimized.
About future ideas, I have been wondering how feasible it is to test for colored output? If my CLI binary prints out colored text, can I test this? What are your thoughts on this. |
This comment has been minimized.
This comment has been minimized.
Most programs detect if they are outputting to a console and don't print color if they are. Some have a "force color" option. So either we'd need to figure out how to fake being a console or clients need to have a force color option and set it. When forced, I assume color just shows up in |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
We've started the major shift to assert_cli 1.0. assert_cmd is the spiritual successor to what assert_cli today. We plan to turn assert_cli into a higher level CLI testing crate like waltz tests. The building blocks for assert_cli 1.0 are
The bad: it will probably take longer to stablize assert_cli because we need to re-evaluate the design and play with ideas The good: the smaller pieces should be a lot easier to stablize. |
Started looking at how others test CLIs and for python, I only found https://bitheap.org/cram/ |
The assert_cli is said to be deprecated: assert-rs/assert_cli#41
@epage asked in #40 (comment):
Good question! I'd like to make the arg parsing a bit leaner (cf. #25 and #32) and maybe improve the error output (#17, #18, #30).
My general goal is to make a library that makes writing tests like these easy and fun. It'll probably involve generating some test boilerplate code, and I'm not entirely sure what I want that API to look like. I'm not even sure if that's in scope for assert_cli. What do you think?
EDIT
The building blocks for assert_cli 1.0 are
The text was updated successfully, but these errors were encountered: