# unclebob/fitnesse architecture

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

- Interactive diagram: https://gitdiagram.com/unclebob/fitnesse
- Repository: https://github.com/unclebob/fitnesse

## Overview

FitNesse is an integrated wiki and acceptance-testing framework. Users browse and edit wiki pages over HTTP, then run tests from those pages and inspect the resulting reports and history. The repository separates server and responder handling, wiki/version persistence, test-run coordination and Fit/Slim execution. The README establishes the product capabilities; the sampled excerpts and source index support only selected internal links, so other plausible connections are omitted rather than inferred.

Main entry points: [`src/fitnesse/FitNesse.java`](https://github.com/unclebob/fitnesse/blob/master/src/fitnesse/FitNesse.java) (HTTP service), [`src/fitnesseMain/FitNesseMain.java`](https://github.com/unclebob/fitnesse/blob/master/src/fitnesseMain/FitNesseMain.java) (Application startup), [`src/fitnesse/testrunner`](https://github.com/unclebob/fitnesse/tree/master/src/fitnesse/testrunner) (Test run coordination), [`src/fitnesse/FitNesseContext.java`](https://github.com/unclebob/fitnesse/blob/master/src/fitnesse/FitNesseContext.java) (Runtime context)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_server["Wiki server"]
  node_main["Application startup<br/>[FitNesseMain.java]"]
  node_config["Configuration"]
  node_context["Runtime context"]
  node_fitnesse["HTTP service<br/>[FitNesse.java]"]
  node_socket["Socket service<br/>[SocketService.java]"]
  node_serverhandler["Request server"]
  node_expediter["Request dispatch"]
  node_responders["Wiki responders"]
end

subgraph group_wiki["Wiki content"]
  node_pages[("Wiki pages")]
  node_versions[("Version history")]
  node_fileutil["File utilities<br/>[FileUtil.java]"]
end

subgraph group_testing["Test execution"]
  node_runner["Test run coordination"]
  node_testsystems["Test systems"]
  node_classpath["Test classpath<br/>[ClassPath.java]"]
  node_clientbuilder["Test client builder<br/>[ClientBuilder.java]"]
  node_slimclient["Slim client"]
  node_slimservice["Slim service<br/>[SlimService.java]"]
  node_fitfixture["FIT fixtures<br/>[Fixture.java]"]
  node_fitparse["FIT table parsing<br/>[Parse.java]"]
end

subgraph group_results["Results and history"]
  node_reporting["Test reporting"]
  node_history[("Result history")]
  node_logger["Request logging<br/>[Logger.java]"]
end

node_user(("Wiki user"))

node_user -->|"browses wiki"| node_fitnesse
node_main -->|"loads settings"| node_config
node_main -->|"creates context"| node_context
node_main -->|"launches service"| node_fitnesse
node_fitnesse -->|"starts listener"| node_socket
node_fitnesse -->|"registers handler"| node_serverhandler
node_fitnesse -->|"dispatches command"| node_expediter
node_expediter -.->|"routes requests"| node_responders
node_responders -.->|"serves wiki content"| node_pages
node_versions -->|"reads content"| node_fileutil
node_context -->|"registers run factory"| node_runner
node_runner -.->|"runs tests"| node_testsystems
node_testsystems -.->|"builds test client"| node_clientbuilder
node_clientbuilder -->|"uses classpath"| node_classpath
node_slimclient -->|"connects to service"| node_slimservice
node_slimservice -->|"creates fixture server"| node_fitfixture
node_fitfixture -->|"parses tables"| node_fitparse
node_runner -.->|"produces results"| node_reporting
node_reporting -.->|"records history"| node_history
node_fitnesse -.->|"logs requests"| node_logger

click node_main "https://github.com/unclebob/fitnesse/blob/master/src/fitnesseMain/FitNesseMain.java"
click node_config "https://github.com/unclebob/fitnesse/blob/master/src/fitnesse/ConfigurationParameter.java"
click node_context "https://github.com/unclebob/fitnesse/blob/master/src/fitnesse/FitNesseContext.java"
click node_fitnesse "https://github.com/unclebob/fitnesse/blob/master/src/fitnesse/FitNesse.java"
click node_socket "https://github.com/unclebob/fitnesse/blob/master/src/fitnesse/socketservice/SocketService.java"
click node_serverhandler "https://github.com/unclebob/fitnesse/blob/master/src/fitnesse/FitNesseServer.java"
click node_expediter "https://github.com/unclebob/fitnesse/blob/master/src/fitnesse/FitNesseExpediter.java"
click node_responders "https://github.com/unclebob/fitnesse/tree/master/src/fitnesse/responders"
click node_pages "https://github.com/unclebob/fitnesse/tree/master/src/fitnesse/wiki"
click node_versions "https://github.com/unclebob/fitnesse/blob/master/src/fitnesse/wiki/fs/SimpleFileVersionsController.java"
click node_fileutil "https://github.com/unclebob/fitnesse/blob/master/src/util/FileUtil.java"
click node_runner "https://github.com/unclebob/fitnesse/tree/master/src/fitnesse/testrunner"
click node_testsystems "https://github.com/unclebob/fitnesse/tree/master/src/fitnesse/testsystems"
click node_classpath "https://github.com/unclebob/fitnesse/blob/master/src/fitnesse/testsystems/ClassPath.java"
click node_clientbuilder "https://github.com/unclebob/fitnesse/blob/master/src/fitnesse/testsystems/ClientBuilder.java"
click node_slimclient "https://github.com/unclebob/fitnesse/blob/master/src/fitnesse/testsystems/slim/SlimClientBuilder.java"
click node_slimservice "https://github.com/unclebob/fitnesse/blob/master/src/fitnesse/slim/SlimService.java"
click node_fitfixture "https://github.com/unclebob/fitnesse/blob/master/src/fit/Fixture.java"
click node_fitparse "https://github.com/unclebob/fitnesse/blob/master/src/fit/Parse.java"
click node_reporting "https://github.com/unclebob/fitnesse/tree/master/src/fitnesse/reporting"
click node_history "https://github.com/unclebob/fitnesse/tree/master/src/fitnesse/reporting/history"
click node_logger "https://github.com/unclebob/fitnesse/blob/master/src/fitnesse/components/Logger.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_main,node_config,node_context,node_fitnesse,node_socket,node_serverhandler,node_expediter,node_responders,node_user toneBlue
class node_pages,node_versions,node_fileutil toneAmber
class node_runner,node_testsystems,node_classpath,node_clientbuilder,node_slimclient,node_slimservice,node_fitfixture,node_fitparse toneMint
class node_reporting,node_history,node_logger toneRose
```

## Components

### Wiki server

- [Application startup](https://github.com/unclebob/fitnesse/blob/master/src/fitnesseMain/FitNesseMain.java): `src/fitnesseMain/FitNesseMain.java`
- [Configuration](https://github.com/unclebob/fitnesse/blob/master/src/fitnesse/ConfigurationParameter.java): `src/fitnesse/ConfigurationParameter.java`
- [Runtime context](https://github.com/unclebob/fitnesse/blob/master/src/fitnesse/FitNesseContext.java): `src/fitnesse/FitNesseContext.java`
- [HTTP service](https://github.com/unclebob/fitnesse/blob/master/src/fitnesse/FitNesse.java): `src/fitnesse/FitNesse.java`
- [Socket service](https://github.com/unclebob/fitnesse/blob/master/src/fitnesse/socketservice/SocketService.java): `src/fitnesse/socketservice/SocketService.java`
- [Request server](https://github.com/unclebob/fitnesse/blob/master/src/fitnesse/FitNesseServer.java): `src/fitnesse/FitNesseServer.java`
- [Request dispatch](https://github.com/unclebob/fitnesse/blob/master/src/fitnesse/FitNesseExpediter.java): `src/fitnesse/FitNesseExpediter.java`
- [Wiki responders](https://github.com/unclebob/fitnesse/tree/master/src/fitnesse/responders): `src/fitnesse/responders`

### Wiki content

- [Wiki pages](https://github.com/unclebob/fitnesse/tree/master/src/fitnesse/wiki): `src/fitnesse/wiki`
- [Version history](https://github.com/unclebob/fitnesse/blob/master/src/fitnesse/wiki/fs/SimpleFileVersionsController.java): `src/fitnesse/wiki/fs/SimpleFileVersionsController.java`
- [File utilities](https://github.com/unclebob/fitnesse/blob/master/src/util/FileUtil.java): `src/util/FileUtil.java`

### Test execution

- [Test run coordination](https://github.com/unclebob/fitnesse/tree/master/src/fitnesse/testrunner): `src/fitnesse/testrunner`
- [Test systems](https://github.com/unclebob/fitnesse/tree/master/src/fitnesse/testsystems): `src/fitnesse/testsystems`
- [Test classpath](https://github.com/unclebob/fitnesse/blob/master/src/fitnesse/testsystems/ClassPath.java): `src/fitnesse/testsystems/ClassPath.java`
- [Test client builder](https://github.com/unclebob/fitnesse/blob/master/src/fitnesse/testsystems/ClientBuilder.java): `src/fitnesse/testsystems/ClientBuilder.java`
- [Slim client](https://github.com/unclebob/fitnesse/blob/master/src/fitnesse/testsystems/slim/SlimClientBuilder.java): `src/fitnesse/testsystems/slim/SlimClientBuilder.java`
- [Slim service](https://github.com/unclebob/fitnesse/blob/master/src/fitnesse/slim/SlimService.java): `src/fitnesse/slim/SlimService.java`
- [FIT fixtures](https://github.com/unclebob/fitnesse/blob/master/src/fit/Fixture.java): `src/fit/Fixture.java`
- [FIT table parsing](https://github.com/unclebob/fitnesse/blob/master/src/fit/Parse.java): `src/fit/Parse.java`

### Results and history

- [Test reporting](https://github.com/unclebob/fitnesse/tree/master/src/fitnesse/reporting): `src/fitnesse/reporting`
- [Result history](https://github.com/unclebob/fitnesse/tree/master/src/fitnesse/reporting/history): `src/fitnesse/reporting/history`
- [Request logging](https://github.com/unclebob/fitnesse/blob/master/src/fitnesse/components/Logger.java): `src/fitnesse/components/Logger.java`

### Other components

- **Wiki user**

## Connections

- Wiki user → HTTP service: browses wiki
- Application startup → Configuration: loads settings (evidence: `src/fitnesseMain/FitNesseMain.java`)
- Application startup → Runtime context: creates context (evidence: `src/fitnesseMain/FitNesseMain.java`)
- Application startup → HTTP service: launches service (evidence: `src/fitnesseMain/FitNesseMain.java`)
- HTTP service → Socket service: starts listener (evidence: `src/fitnesse/FitNesse.java`)
- HTTP service → Request server: registers handler (evidence: `src/fitnesse/FitNesse.java`)
- HTTP service → Request dispatch: dispatches command (evidence: `src/fitnesse/FitNesse.java`)
- Request dispatch → Wiki responders: routes requests
- Wiki responders → Wiki pages: serves wiki content
- Version history → File utilities: reads content (evidence: `src/fitnesse/wiki/fs/ZipFileVersionsController.java`)
- Runtime context → Test run coordination: registers run factory (evidence: `src/fitnesse/FitNesseContext.java`)
- Test run coordination → Test systems: runs tests
- Test systems → Test client builder: builds test client (evidence: `src/fitnesse/testsystems/slim/SlimClientBuilder.java`)
- Test client builder → Test classpath: uses classpath (evidence: `src/fitnesse/testsystems/ClientBuilder.java`)
- Slim client → Slim service: connects to service (evidence: `src/fitnesse/testsystems/slim/SlimClientBuilder.java`)
- Slim service → FIT fixtures: creates fixture server (evidence: `src/fitnesse/slim/SlimService.java`)
- FIT fixtures → FIT table parsing: parses tables (evidence: `src/fit/Fixture.java`)
- Test run coordination → Test reporting: produces results
- Test reporting → Result history: records history
- HTTP service → Request logging: logs requests (evidence: `src/fitnesse/FitNesse.java`)
