motia icon indicating copy to clipboard operation
motia copied to clipboard

feat: increment e2e tests cli

Open ytallo opened this issue 1 month ago • 3 comments

Summary

Related Issues

Type of Change

  • [ ] Bug fix
  • [ ] New feature
  • [ ] Breaking change
  • [ ] Refactor
  • [ ] Other (please describe):

Checklist

  • [ ] I have read the CONTRIBUTING.md
  • [ ] My code follows the code style of this project
  • [ ] I have added tests where applicable
  • [ ] I have tested my changes locally
  • [ ] I have linked relevant issues
  • [ ] I have added screenshots for UI changes (if applicable)

Screenshots (if applicable)

Additional Context


[!NOTE] Adds comprehensive E2E tests for Motia CLI commands with a new CLI helper and minor cursor rules doc updates.

  • E2E Tests (CLI):
    • Add coverage for docker (build, setup, --help) in packages/e2e/tests/release/cli/cli-docker.spec.ts.
    • Add emit command tests (topic/message validation, custom port) in cli-emit.spec.ts.
    • Add generate-types tests (file creation, success output) in cli-generate.spec.ts.
    • Add install tests (success, Python venv detection, --verbose, non-Python projects) in cli-install.spec.ts.
    • Add rules pull tests (file creation, overwrite behavior) in cli-rules.spec.ts.
    • Add start server tests (custom port/host, --disable-verbose) in cli-server.spec.ts.
    • Add version output tests (version, -V, --version) in cli-version.spec.ts.
  • Test Utilities:
    • Introduce packages/e2e/src/cli-helpers.ts with getCliCommand and getCliPath supporting MOTIA_CLI_PATH/MOTIA_VERSION.
    • Refactor cli-validation.spec.ts to use getCliCommand('generate openapi').
  • Docs:
    • Update .cursor/index.mdc to include guides for UI steps and motia config.

Written by Cursor Bugbot for commit 8bef3698345e48b054bd4353e5c6313587449133. This will update automatically on new commits. Configure here.

ytallo avatar Nov 28 '25 15:11 ytallo

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
motia-docs Ready Ready Preview Comment Nov 28, 2025 3:07pm
motia-ui Ready Ready Preview Comment Nov 28, 2025 3:07pm

vercel[bot] avatar Nov 28 '25 15:11 vercel[bot]

📦 This PR is large (>500 lines). Please ensure it has been properly tested.

github-actions[bot] avatar Nov 28 '25 15:11 github-actions[bot]

E2E Test Results ✅

All tests have completed. Tests passed.

Matrix: 2 OS (Ubuntu, macOS) × 2 Templates (TypeScript, Python) = 4 jobs

View detailed test results


This comment is automatically posted by the PR E2E Results workflow.

github-actions[bot] avatar Nov 28 '25 15:11 github-actions[bot]