Skip to content

make CLI arguments more concise #123

@samuelcolvin

Description

@samuelcolvin

I'm using inline-snapshots on all projects I'm working on (I just added it to pydantic-core, pydantic/pydantic-core#1512).

As I use it more and more, there are 3 related things that I find a bit annoying:

  1. The CLI arguments like --inline-snapshot=fix and --inline-snapshot=create are quite verbose to write out when I want to enable them, could we add --snap-fix etc?
  2. --inline-snapshot=create isn't on by default and --inline-snapshot=fix doesn't imply --inline-snapshot=create - could you add a config setting or env var to have --inline-snapshot=create on by default? and/or could --inline-snapshot=fix imply --inline-snapshot=create?
  3. When I enable --inline-snapshot=fix or --inline-snapshot=create I get loads of diffs from tests that are passing but where snapshot values are formatted differently to inline-snapshots default formatting. I've seen this confuse some of our team a lot, as they thought these tests were failing, I think the diff should be hidden for tests that are passing by default.

Sorry if these should be three separate issues, I thought there were related enough to put together. Happy to split if you'd prefer.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions