-
Notifications
You must be signed in to change notification settings - Fork 225
Add audit command
#6798
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?
Add audit command
#6798
Conversation
Coverage report
Show new covered files 🐣
Show files with reduced coverage 🔻
Test suite run success3689 tests passing in 1431 suites. Report generated by 🧪jest coverage report action from ea4eb79 |
9ecb998 to
440b7c9
Compare
440b7c9 to
ea4eb79
Compare
|
We detected some changes at Caution DO NOT create changesets for features which you do not wish to be included in the public changelog of the next CLI release. |
WHY are these changes introduced?
We need an automated way to validate that CLI commands work correctly after changes or new releases. Currently, there's no easy way to:
This audit command provides the foundation for automated command testing.
WHAT is this pull request doing?
Introduces the
shopify auditcommand with initial theme command tests:Core Framework: - Adds shopify audit theme command for testing theme-related commands - Implements test framework with suites, assertions, and context management - Sets up structure for future expansion (app commands)
Initial Tests: - We are testing
theme initandtheme pushcommands. Follow up PR's will add the remaining commands and update existing tests and assertions.Note: - Tests run in order. If a test relies on another command, that command should run first (Ex:
theme initto create a theme and then runningtheme push.How to test your changes?
Pull down the branch
Build the branch
Run
shopify audit theme -e <your env>in a folder that has ashopify.theme.tomlfile.Post-release steps
Much like the CLI multi-env command work, the audit command will be built up over many additional PR's.
Measuring impact
How do we know this change was effective? Please choose one:
Checklist