Skip to content
Discussion options

You must be logged in to vote

There are no stability guarantees about the generated text, only in how it behaves.

It can still be reasonable to have snapshot tests for content you care about as long as it outweighs the update costs. For example, I regularly have snapshot tests for error output, help output, etc.

You could take the approach of saying "its tested in clap". Another approach would be to use completest to create tests. This can be very slow so you might only want some basic smoke tests.

With our new completion system, more of the logic is in Rust and the quality of tests is higher, so its only the shell glue that needs testing which we have tests for, so I wouldn't bother testing that (we don't in cargo).

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by nc7s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants