# mutebalmughyiri/test-in architecture

> Architecture diagram of the GitHub repository mutebalmughyiri/test-in, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-17). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/mutebalmughyiri/test-in
- Repository: https://github.com/mutebalmughyiri/test-in

## Overview

Testin is an IntelliJ plugin for managing test cases and test runs alongside the automation code they drive. Its main workflow is to organize projects and sets in a tree, author cases in the editor, generate and execute automation, record run results, and report or share the work. The README also documents Git-based collaboration, import/export, and separate JSON records on disk. Relationships below are limited to README statements and the shown source-index references; several subsystem internals were not sampled.

Main entry points: [`src/main/java/org/testin/explorer/tree/TestinTree.java`](https://github.com/mutebalmughyiri/test-in/blob/main/src/main/java/org/testin/explorer/tree/TestinTree.java) (Project tree), [`src/main/java/org/testin/editor/TestinEditor.java`](https://github.com/mutebalmughyiri/test-in/blob/main/src/main/java/org/testin/editor/TestinEditor.java) (Test editors), [`src/main/java/org/testin/indexer/TestCaseFile.java`](https://github.com/mutebalmughyiri/test-in/blob/main/src/main/java/org/testin/indexer/TestCaseFile.java) (JSON records), [`src/main/java/org/testin/codegen/ApiModelMaker.java`](https://github.com/mutebalmughyiri/test-in/blob/main/src/main/java/org/testin/codegen/ApiModelMaker.java) (Code generation)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_organize["Organize &amp; store"]
  node_tree["Project tree<br/>[TestinTree.java]"]
  node_create["Create nodes<br/>[NodeCreator.java]"]
  node_node_model["Node model<br/>[AbstractNode.java]"]
  node_indexer["Project indexer"]
  node_disk_records[("JSON records<br/>[TestCaseFile.java]")]
end

subgraph group_author["Author &amp; explore"]
  node_test_case["Test case model<br/>[TestCase.java]"]
  node_editor["Test editors<br/>[TestinEditor.java]"]
  node_filter_search["Filter &amp; search"]
end

subgraph group_automation["Automation &amp; runs"]
  node_codegen["Code generation<br/>[ApiModelMaker.java]"]
  node_java_methods["Java methods"]
  node_testng["TestNG execution<br/>[TestNGRunner.java]"]
  node_run_editor["Run editor<br/>[TestRunEditor.java]"]
  node_run_records[("Run records<br/>[RunItemWriter.java]")]
end

subgraph group_share["Share &amp; report"]
  node_git["Git sync"]
  node_import_export["Import &amp; export<br/>[ImportHandler.java]"]
  node_report["Report generation<br/>[ReportHandler.java]"]
end

node_tester(("Tester"))
node_external_git[("Git remote")]

node_tester -->|"organizes"| node_tree
node_tree -->|"creates nodes"| node_create
node_tree -->|"shows hierarchy"| node_node_model
node_indexer -->|"indexes files"| node_disk_records
node_disk_records -->|"stores JSON"| node_test_case
node_tester -->|"writes cases"| node_editor
node_editor -->|"edits fields"| node_test_case
node_editor -->|"filters cases"| node_filter_search
node_tester -->|"requests automation"| node_codegen
node_codegen -->|"maintains methods"| node_java_methods
node_tester -->|"starts execution"| node_testng
node_testng -->|"records outcomes"| node_run_editor
node_run_editor -->|"persists results"| node_run_records
node_tester -->|"syncs changes"| node_git
node_git -->|"syncs remote"| node_external_git
node_tester -->|"imports or exports"| node_import_export
node_tester -->|"generates reports"| node_report

click node_tree "https://github.com/mutebalmughyiri/test-in/blob/main/src/main/java/org/testin/explorer/tree/TestinTree.java"
click node_create "https://github.com/mutebalmughyiri/test-in/blob/main/src/main/java/org/testin/creator/NodeCreator.java"
click node_node_model "https://github.com/mutebalmughyiri/test-in/blob/main/src/main/java/org/testin/model/node/AbstractNode.java"
click node_indexer "https://github.com/mutebalmughyiri/test-in/blob/main/src/main/java/org/testin/indexer/TestProjectIndexer.java"
click node_disk_records "https://github.com/mutebalmughyiri/test-in/blob/main/src/main/java/org/testin/indexer/TestCaseFile.java"
click node_test_case "https://github.com/mutebalmughyiri/test-in/blob/main/src/main/java/org/testin/model/TestCase.java"
click node_editor "https://github.com/mutebalmughyiri/test-in/blob/main/src/main/java/org/testin/editor/TestinEditor.java"
click node_filter_search "https://github.com/mutebalmughyiri/test-in/blob/main/src/main/java/org/testin/filter/TestCaseFilter.java"
click node_codegen "https://github.com/mutebalmughyiri/test-in/blob/main/src/main/java/org/testin/codegen/ApiModelMaker.java"
click node_java_methods "https://github.com/mutebalmughyiri/test-in/blob/main/testin-java/src/main/java/org/testin/java/codegen/method/CreateTestMethod.java"
click node_testng "https://github.com/mutebalmughyiri/test-in/blob/main/testin-testng/src/main/java/org/testin/testng/TestNGRunner.java"
click node_run_editor "https://github.com/mutebalmughyiri/test-in/blob/main/src/main/java/org/testin/editor/testrun/TestRunEditor.java"
click node_run_records "https://github.com/mutebalmughyiri/test-in/blob/main/src/main/java/org/testin/indexer/RunItemWriter.java"
click node_git "https://github.com/mutebalmughyiri/test-in/blob/main/src/main/java/org/testin/git/GitRepositoryService.java"
click node_import_export "https://github.com/mutebalmughyiri/test-in/blob/main/src/main/java/org/testin/importexport/ImportHandler.java"
click node_report "https://github.com/mutebalmughyiri/test-in/blob/main/src/main/java/org/testin/importexport/ReportHandler.java"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_tree,node_create,node_node_model,node_indexer,node_disk_records toneBlue
class node_test_case,node_editor,node_filter_search,node_external_git toneAmber
class node_codegen,node_java_methods,node_testng,node_run_editor,node_run_records toneMint
class node_git,node_import_export,node_report toneRose
class node_tester toneIndigo
```

## Components

### Organize & store

- [Project tree](https://github.com/mutebalmughyiri/test-in/blob/main/src/main/java/org/testin/explorer/tree/TestinTree.java): `src/main/java/org/testin/explorer/tree/TestinTree.java`
- [Create nodes](https://github.com/mutebalmughyiri/test-in/blob/main/src/main/java/org/testin/creator/NodeCreator.java): `src/main/java/org/testin/creator/NodeCreator.java`
- [Node model](https://github.com/mutebalmughyiri/test-in/blob/main/src/main/java/org/testin/model/node/AbstractNode.java): `src/main/java/org/testin/model/node/AbstractNode.java`
- [Project indexer](https://github.com/mutebalmughyiri/test-in/blob/main/src/main/java/org/testin/indexer/TestProjectIndexer.java): `src/main/java/org/testin/indexer/TestProjectIndexer.java`
- [JSON records](https://github.com/mutebalmughyiri/test-in/blob/main/src/main/java/org/testin/indexer/TestCaseFile.java): `src/main/java/org/testin/indexer/TestCaseFile.java`

### Author & explore

- [Test case model](https://github.com/mutebalmughyiri/test-in/blob/main/src/main/java/org/testin/model/TestCase.java): `src/main/java/org/testin/model/TestCase.java`
- [Test editors](https://github.com/mutebalmughyiri/test-in/blob/main/src/main/java/org/testin/editor/TestinEditor.java): `src/main/java/org/testin/editor/TestinEditor.java`
- [Filter & search](https://github.com/mutebalmughyiri/test-in/blob/main/src/main/java/org/testin/filter/TestCaseFilter.java): `src/main/java/org/testin/filter/TestCaseFilter.java`

### Automation & runs

- [Code generation](https://github.com/mutebalmughyiri/test-in/blob/main/src/main/java/org/testin/codegen/ApiModelMaker.java): `src/main/java/org/testin/codegen/ApiModelMaker.java`
- [Java methods](https://github.com/mutebalmughyiri/test-in/blob/main/testin-java/src/main/java/org/testin/java/codegen/method/CreateTestMethod.java): `testin-java/src/main/java/org/testin/java/codegen/method/CreateTestMethod.java`
- [TestNG execution](https://github.com/mutebalmughyiri/test-in/blob/main/testin-testng/src/main/java/org/testin/testng/TestNGRunner.java): `testin-testng/src/main/java/org/testin/testng/TestNGRunner.java`
- [Run editor](https://github.com/mutebalmughyiri/test-in/blob/main/src/main/java/org/testin/editor/testrun/TestRunEditor.java): `src/main/java/org/testin/editor/testrun/TestRunEditor.java`
- [Run records](https://github.com/mutebalmughyiri/test-in/blob/main/src/main/java/org/testin/indexer/RunItemWriter.java): `src/main/java/org/testin/indexer/RunItemWriter.java`

### Share & report

- [Git sync](https://github.com/mutebalmughyiri/test-in/blob/main/src/main/java/org/testin/git/GitRepositoryService.java): `src/main/java/org/testin/git/GitRepositoryService.java`
- [Import & export](https://github.com/mutebalmughyiri/test-in/blob/main/src/main/java/org/testin/importexport/ImportHandler.java): `src/main/java/org/testin/importexport/ImportHandler.java`
- [Report generation](https://github.com/mutebalmughyiri/test-in/blob/main/src/main/java/org/testin/importexport/ReportHandler.java): `src/main/java/org/testin/importexport/ReportHandler.java`

### Other components

- **Tester**
- **Git remote**

## Connections

- Tester → Project tree: organizes (evidence: `README.md`)
- Project tree → Create nodes: creates nodes (evidence: `README.md`)
- Project tree → Node model: shows hierarchy (evidence: `README.md`)
- Project indexer → JSON records: indexes files (evidence: `README.md`)
- JSON records → Test case model: stores JSON (evidence: `README.md`)
- Tester → Test editors: writes cases (evidence: `README.md`)
- Test editors → Test case model: edits fields (evidence: `README.md`)
- Test editors → Filter & search: filters cases (evidence: `README.md`)
- Tester → Code generation: requests automation (evidence: `README.md`)
- Code generation → Java methods: maintains methods (evidence: `README.md`)
- Tester → TestNG execution: starts execution (evidence: `README.md`)
- TestNG execution → Run editor: records outcomes (evidence: `testin-testng/src/main/java/org/testin/testng/TestNGRunner.java`)
- Run editor → Run records: persists results (evidence: `README.md`)
- Tester → Git sync: syncs changes (evidence: `README.md`)
- Git sync → Git remote: syncs remote (evidence: `src/main/java/org/testin/git/GitRepositoryService.java`)
- Tester → Import & export: imports or exports (evidence: `README.md`)
- Tester → Report generation: generates reports (evidence: `README.md`)
