sync-cases
SYNC-CASES SKILL: What I do
This skill enables synchronization of Markdown test scenarios between your local project and Testomat.io Test Management System.
Test Cases Sync Jornay:
- Export test cases from Testomat.io.
- Bulk editing manual tests or refactoring test cases.
- Further push back test cases to the Testomat.io.
When to Use
Trigger this skill when user wants to:
- Pull/Export/Download tests from Testomat.io to local Markdown files.
- Push/Upload/Import local Markdown tests to Testomat.io.
- Bulk edit manual tests or refactor test cases in local files and upload to TMS.
- Synchronize test cases between local
.mdfiles and TMS (Testomat.io). - Sync test cases with the remote version in TMS (Testomat.io).
- Cover user bulk edit workflow: pull cases -> edit test cases -> push cases to TMS.
Workflow: Sync Test Cases
Step 1: Environment Setup
Check Testomat.io Token
Check if "TESTOMATIO" token was provided as input:
- If not provided, check for
.envfile in project root.- If still not found => ❓ ask user for token.
Save Credentials to .env File
Best Practice to save credentials into .env file:
TESTOMATIO=tstmt_xxxxx
...
Get API Key (if user doesn't have it)
Ask the user to obtain it from Testomat.io project:
- Navigate to Settings → Project → Project Reporting API key
( Project path example by "project-id":
https://app.testomat.io/projects/<project-id>/settings/project)
Step 2: Pull or Push Operations
Ensure check-tests Package Installed
Ensure the check-tests package is available in the project before running pull, push or sync commands.
- If
check-testsis already installed, reuse the existing version. - If
check-testsis not installed, install it:
npm install check-tests --save-dev --no-audit --no-fund
Pull Changes
Download/Retrieves test scenarios from Testomat.io and saves them as Markdown files locally.
Use Cases:
- Export tests from TMS to markdown for bulk editing in IDE.
- Backup test cases locally.
- Refactor test cases offline.
Pre-Pull:
- Ensure
testDirexists; otherwise createmanual-testsfolder.
Command:
npx check-tests pull -d <directory>
# or if installed locally
./node_modules/.bin/check-tests pull -d <directory>
Examples:
# Pull tests to default manual-tests folder
npx check-tests pull -d manual-tests
More examples you can find in "Pull" section Testomat.io CLI Documentation
Push Changes
Uploads/Imports local Markdown tests into Testomat.io.
Use Cases:
- Mass create test cases in Testomat.io from markdown files.
- Import bulk-edited tests back to TMS.
- Sync refactored test cases to Testomat.io.
Pre-Push Validation:
- Ensure a new test cases was created by user.
- Ensure at least one test
.test.mdfile exists - Ensure file contains valid test blocks:
<!-- test
priority: ...
creator: ...
tags: ...
labels: ...
-->
# ... (test case title)
... (test case description)
Sync Changes
Analyze local changes in test cases and determine what has changed:
- Only content updates.
- New test cases added.
- Mixed changes (updates + new tests).
Use:
npx check-tests pushto synchronize local tests with the TMS (including automatic test ID assignment when needed).
Examples:
# Push updated/newly created test cases to TMS
npx check-tests push
# Push tests from manual-tests folder
npx check-tests push -d manual-tests
More examples you can find in "Push" section Testomat.io CLI Documentation
Labels Handling (Intent-Based)
Use TESTOMATIO_LABELS in sync/push only if the user explicitly requests to set or override labels in their query.
Triggers:
- "push tests with labels smoke".
- "import tests to TMS and set label=regression":
- labels like
smoke,regressionexample:TESTOMATIO_LABELS="smoke,regression" npx check-tests push
- labels like
Final Summary Example
After completing sync operations, output a short log-style summary:
Sync Complete:
- Action: pull/push
- Directory: manual-tests
- Tests synced: 15
- Status: Success
Error Handling
Recovery
Attempt recovery before failing when:
-
Missing
TESTOMATIOtoken- Ask the user to provide it
- Show where to find it in Testomat.io
-
No markdown files found
- Confirm directory or ask user to specify another cases path
Hard Fail (Stop immediately)
Stop execution if:
- Cannot create
.envfile by system. - Directory creation fails.
- CLI sync command fails (network/auth/401/403).
References
| Description | File |
|---|---|
| Testomat.io CLI Commands | ./references/TESTOMATIO_CLI.md |
Examples
Pull tests:
Use sync-cases skill to pull tests from Testomat.io in folder manual-tests
Push tests:
Use sync-cases to push tests to Testomat.io
Bulk test case edit workflow:
- Use sync-cases to pull tests from Testomat.io
- Edit tests in IDE
- Use sync-cases to push the updated tests back to Testomat.io
Quick Commands
| Action | Command |
|---|---|
| Install | npm install check-tests --save-dev |
| Pull | npx check-tests pull -d <directory> |
| Push | npx check-tests push -d <directory> |
More from testomatio/skills
find-duplicate-cases
Find duplicate, near-duplicate, and overlapping test cases across the test suite. Identifies exact matches, semantically similar tests, and tests that are subsets of other tests. Provides recommendations for which tests to keep, merge, or remove.
7improve-test-cases
Analyze and improve existing markdown manual test cases for clarity, structure, and Test Management Tool format compliance.
7testing-flow
Orchestrate the complete test case lifecycle from requirements to uploading to TMS (Test Management System). Generate test cases, improve existing ones, analyze test coverage, add test reporter, upload to TMS, write new autotests, fix/heal autotests. Use this skill when you need to manage the entire testing workflow including generation, improvement, coverage, and sync with Testomat.io or do one of these tasks.
6reporter-setup
Set up Testomat.io test reporting to project. Configure automation framework (like Playwright, CodeceptJS, Mocha, Jest, WebdriverIO, etc.) reporters to connect the local test suite with Testomat.io TMS.
6generate-test-cases
Generate test cases and checklists for software testing. Use this skill whenever the user asks to create test cases, test scenarios, test plans, checklists, QA documentation, or mentions testing activities like "write tests for feature", "create a test checklist", "generate test scenarios from requirements", or similar. This skill works better if user provides documentation, requirements etc or it can create test cases based on the user prompt without any additional context.
4automate-test-cases
This skill converts manual test cases into production-ready automated test scripts. It analyzes the existing automation framework, interprets manual test steps, and generates maintainable tests following automation best practices. Use this skill whenever the user want to automate manual test cases, expand test coverage, or create end-to-end automated flows from existing test documentation.
4