arcanis / clipanion

Type-safe CLI library / framework with no runtime dependencies
https://mael.dev/clipanion/
1.12k stars 66 forks source link

Explicit category order #97

Open cspotcode opened 3 years ago

cspotcode commented 3 years ago

Implements #96

WIP to gauge if this will be accepted before I add tests.

cspotcode commented 3 years ago

For both this and #99, do you have any guidance on writing tests? I skimmed the tests and I can see the --help tests. However, I expected to see some snapshots of the --help output. Rather, I see the tests often comparing the output of 2x different invocations to verify that they are identical, but not necessarily to verify that the output is formatted in any particular way. I may be misunderstanding the test philosophy, and I'm hoping that you can offer a sentence or two to point me in the right direction.