Skip to content

Conversation

khoi
Copy link
Collaborator

@khoi khoi commented May 28, 2025

Improve the ergonomic of development:

  • Remove all confusing unrelated files. Cocoapods, unused xcproject
  • Move tests to use SPM
  • Create a CLI to generate and update the ref snapshots
  • Add a Makefile for common scripts
  • Update README

CleanShot 2025-05-28 at 11 18 12@2x

khoi added 10 commits May 28, 2025 08:59
- Replace script-test-cases.sh with Makefile targets
- Add help system and test running capabilities
- Preserve existing test case generation logic for SVG 1.1 and 1.2 specs
- Consolidate build and test operations into standard Make interface
- Combine separate Linux and macOS test jobs into single matrix job
- Use dynamic OS naming and runner configuration via matrix variables
- Update test command to use Makefile instead of direct Swift command
- Maintain same test coverage while reducing workflow complexity
- Remove Exyte branding and company-specific content
- Add attribution to original exyte/SVGView repository
- Document Goodnotes-specific customizations and requirements
- Add development section with Makefile usage instructions
- Simplify project overview and remove platform badges
@khoi khoi changed the title Simplify the script testing procedure Improve DX ergonomic May 28, 2025
khoi added 3 commits May 28, 2025 11:13
- Fix YAML formatting and indentation consistency
- Filter Linux tests to CoreGraphicsPolyfillTests only
- Remove trailing whitespace and normalize spacing
Copy link
Collaborator Author

@khoi khoi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.

## To add a new SVG test:
- Update `cli.swift` to include the svg file path
- `make generate-test-cases` to generate the unit test files
- `make update-references-snapshots` to update the .ref snapshots.
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how to use

khoi added 2 commits May 28, 2025 11:19
- Add fallback CLI implementation for non-macOS platforms
- Display clear error message when attempting to run on unsupported systems
- Maintain existing functionality on macOS while preventing execution elsewhere
Copy link
Collaborator

@pacowong pacowong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for improving the DX

@khoi khoi merged commit 598d2d4 into main May 28, 2025
2 checks passed
@khoi khoi deleted the khoi/make branch May 28, 2025 04:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants