-
Notifications
You must be signed in to change notification settings - Fork 128
chore: add arg validation test coverage #570
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?
Conversation
Co-authored-by: Copilot <[email protected]>
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.
Pull Request Overview
This PR focuses on adding comprehensive argument validation test coverage across Atlas tools while refactoring test infrastructure for better organization. The changes introduce common validation patterns and enable running some tests without Atlas credentials.
Key changes:
- Adds standardized argument validation tests for Atlas tools using shared test helpers
- Refactors Atlas test helpers to separate credential-dependent tests from metadata validation
- Introduces common argument validation patterns and reusable parameter definitions
Reviewed Changes
Copilot reviewed 19 out of 25 changed files in this pull request and generated 1 comment.
Show a summary per file
File | Description |
---|---|
vitest.config.ts | Adds new test project for Atlas cleanup scripts and excludes scripts directory |
tests/integration/tools/atlas/*.test.ts | Adds argument validation tests and wraps credential-dependent tests |
tests/integration/helpers.ts | Adds common validation argument sets and parameter definitions |
src/tools/atlas/*.ts | Refactors to use shared argument definitions from args.ts |
src/tools/args.ts | Adds shared argument objects and improves descriptions |
scripts/cleanupAtlasTestLeftovers.test.ts | New cleanup script for stale Atlas test resources |
package.json | Adds new npm script for Atlas cleanup |
.github/workflows/cleanup-atlas-env.yml | Adds GitHub workflow for automated Atlas environment cleanup |
Proposed changes
Checklist