Move your tests with momentic import
Check Node.js before running the CLI or onboarding wizard:
momentic.config.yaml. If
you do not have a project yet, the onboarding wizard installs the CLI, logs you
in, and scaffolds the configuration:
momentic login to select an account,
or set MOMENTIC_API_KEY for that workspace.
Then run:
momentic import for flags. You
can also pass test paths to import individual tests or folder paths (e.g.
auth/onboarding) to import that folder’s tests and their referenced modules.
The folder hierarchy is recreated on disk.
Imports with explicit paths bring in tests and modules; they do not import
environments. Configure the required environments
before running that selection. In a workspace repository, change into the
selected project’s directory before importing. Pass --config if needed to
select its configuration; that flag does not change where newly imported files
are written.
What is deprecated
- Authoring tests in the cloud editor. Create and edit tests with the CLI (and the local editor it ships with) or your coding agent via the MCP server.
- Cloud-hosted test runs
(
momentic queue testsandqueue suites). Run withmomentic runlocally or in CI instead. - Momentic Copilot (the cloud-based AI authoring assistant). Use your coding agent with the MCP server for natural-language test authoring.
What is not deprecated
The dashboard at app.momentic.ai still handles repository test results and configuration:- Results and the Run Viewer: videos, traces, auto-heal history, step output
- API keys, team, and SSO
- Security and audit
- Quarantine and quarantine rules
- Results classification and recovery history
- AI settings and model version pinning
- Integrations: Slack, GitHub, GitLab
- Usage and billing
qa CLI.
Hosted browsers still work with
momentic run; your CLI or CI runner controls the test execution.
After importing
The import moves test definitions. It does not configure CI jobs or recreate cloud suite schedules. Record the old suite’s test selection, environment, parameters, browser settings, concurrency, and schedule before replacing it.1
Validate the imported files
Run lint and check that every expected test appears in the local selection:The importer writes the format selected by
fileFormat in your project
config. For a legacy project, use the simplified format
migration before editing YAML
with a coding agent.2
Run one imported test
Use an actual path from Confirm the starting URL, test data, assertions, and setup/cleanup behavior.
Review recovery and failure classifications as well as the final status.
The test’s own
momentic list and the environment used by the
cloud run. For example, if your imported environment is named staging:url takes precedence over the selected environment’s base
URL; see environment selection
if the run targets the wrong deployment.3
Author with the CLI or MCP
Edit imported tests (or write new ones) in the local editor that ships with
the CLI, or hand your coding agent the MCP
server and describe the behavior in natural
language. Tests are YAML files in your repo.
4
Run locally and in CI
Replace
momentic queue tests and momentic queue suites with momentic run. Translate each suite into
explicit paths, directories, or labels, then use momentic list with the
same selection to check its membership. Recreate environment variables,
parameters, and schedules in your CI provider using the
CI templates.Run the imported selection in CI and compare it with the previous suite
before removing the old queue job. Confirm the expected tests and
parameterized cases actually ran; account for disabled or skipped tests,
quarantine, recovered passes, and failure classifications. Exit code 0
alone does not prove coverage parity. Check an expected failed assertion so
the new job’s exit status blocks the pipeline as intended.5
Triage in the dashboard
Pass
--upload-results so runs appear in the
dashboard. Open the uploaded run and verify its
test count, environment, and results before switching the suite over.Why CLI-first
CLI-first means tests are versioned with your application code, run the same way on a laptop and in CI, and connect to coding agents through MCP. The dashboard’s job is triage and configuration, not authoring or execution.Related
momentic importmomentic runmomentic queue(deprecated)- How Momentic works
- Quickstart: Web, iOS, Android
- MCP server