-
Notifications
You must be signed in to change notification settings - Fork 61
update tsci snapshot logic #548
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -14,7 +14,7 @@ tsci snapshot [options] [path] | |
| ### Options | ||
| - `-u, --update` – write new snapshots to disk. | ||
| - `--force-update` – force writing snapshots even when no visual diff is detected. | ||
| - `--3d` – also generate 3D preview snapshots. | ||
| - `--3d` – generate schematic, PCB, and 3D preview snapshots. | ||
| - `--pcb-only` – generate only PCB snapshots. | ||
| - `--schematic-only` – generate only schematic snapshots. | ||
| - `--disable-parts-engine` – disable the parts engine while rendering snapshots. | ||
|
|
@@ -42,6 +42,8 @@ __snapshots__/test.board-pcb.snap.svg | |
| __snapshots__/test.board-schematic.snap.svg | ||
| ``` | ||
|
|
||
| If `--3d` is specified, a `-3d.snap.svg` is also produced. | ||
| By default, only the PCB and schematic snapshots are produced. | ||
|
|
||
| Running without `--update` verifies that the generated output matches the existing snapshots. Differences cause a non-zero exit code. | ||
| If `--3d` is specified, the command produces PCB, schematic, and 3D snapshots | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. wat
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. that is not what this flag does, the flag adds to the existing outputs |
||
|
|
||
| Running without `--update` verifies that the generated output matches the existing snapshots. Differences cause a non-zero exit code. | ||

There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
??? that's not what --3d does
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@seveibar
i wrote the behaviour,
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that is not what this flag does, this flag adds the 3d preview snapshots