Skip to content

Add GitNexus integration test scenarios for CTORNDGAIN-1494.#92

Merged
isolomatov-gd merged 2 commits into
v3from
gitnexus_test_cases
May 29, 2026
Merged

Add GitNexus integration test scenarios for CTORNDGAIN-1494.#92
isolomatov-gd merged 2 commits into
v3from
gitnexus_test_cases

Conversation

@mkuznietsov
Copy link
Copy Markdown

TestRail-compatible cases covering GitNexus MCP validation (20 scenarios).

TestRail-compatible cases covering GitNexus MCP validation (20 scenarios).

Co-authored-by: Cursor <cursoragent@cursor.com>
- After step 5: Agent runs `npx gitnexus@latest setup`
- After step 6: Both commands complete without errors
- After step 7: `.gitnexus/` directory exists in PROJECT (verify with `ls -la .gitnexus/`). Phase 6 logged as "installed" in state file

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would also add that gitnexus is added to MCP config.
After running /mcp, gitnexus · ✔ connected would be received

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll fix.

**Expected Results**:
- After step 4: GitNexus appears in the MCP server list
- After step 5: Status shows GitNexus as connected/active
- After step 8: `gitnexus_query()` returns results (symbols, processes) without errors. This confirms healthy handshake (Assumption A-1)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would check that not particularly gitnexus_query() is called but if any gitnexus tools were used. Please check gitnexus tools here: https://github.com/griddynamics/rosetta/blob/v3/instructions/r3/core/skills/gitnexus-tools/SKILL.md

4. Wait for Phase 7 (Documentation) to complete
5. Check if `.gitnexus/` exists: `ls .gitnexus/`
6. Open `CONTEXT.md` and search for "GitNexus", "gitnexus-tools", "gitnexus-cli"
7. Open `gain.json` and search for "gitnexus"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Integration to gain.json wasn't implemented

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, I'll remove.

5. When Phase 6 asks about GitNexus — answer **Yes**
6. Wait for all phases to complete (through Phase 9 — Verification)
7. Verify `.gitnexus/` exists: `ls -la .gitnexus/`
8. Open `gain.json` and look for a GitNexus integration entry
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Integration to gain.json wasn't implemented. It shouldn't be checked

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll remove.


---

### TC-009: MCP clean shutdown — no orphaned processes (Happy Path)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think that it should be checked

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll remove TC-009. Thanks!

---

### TC-011: `gain.json` contains GitNexus entry after opt-in (Happy Path)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It shouldn't be tested

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll remove TC-011. Thanks!

---

### TC-012: Removing GitNexus from `gain.json` disables integration (Negative)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It shouldn't be tested

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll remove TC-012. Thanks!

| AC-3: GitNexus failure never blocks Rosetta | TC-006 |
| AC-4: `gain.json` is single source of truth | TC-011, TC-012 |
| AC-5: CONTEXT.md sufficient for agent discovery | TC-013 |
| AC-6: Consistent across agents | All TCs (agent-agnostic by design — run suite on each agent tool) |
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the list of AI Editors in which gitnexus must be tested should be specified.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll execute all Test Cases in all Agentic Tools. I asked TestGen not to specify list of tools as it could be changed in the future. I'll fix summary of the doc to reflect that ALL test cases should be executed on ALL supported AI Tools.

| AC-4: `gain.json` is single source of truth | TC-011, TC-012 |
| AC-5: CONTEXT.md sufficient for agent discovery | TC-013 |
| AC-6: Consistent across agents | All TCs (agent-agnostic by design — run suite on each agent tool) |

Copy link
Copy Markdown
Contributor

@YevheniiaLementova YevheniiaLementova May 26, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it would be also good to add - checking gitnexus in rosetta local mode and in rosetta plugin mode.

In local mode - gitnexus installed successfully, indexed codebase, gitnexus tools are used. But in case of any changes the index would be updated only after commits

In plugin mode - gitnexus installed successfully, indexed codebase, gitnexus tools are used. In case of any changes the index would be updated just after any code modifications

What do you think about it?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll add test cases for this. Thanks!

Remove gain.json tests, add MCP and mode-specific cases, and align coverage with current implementation.

Co-authored-by: Cursor <cursoragent@cursor.com>
@isolomatov-gd isolomatov-gd merged commit 8e4db29 into v3 May 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants