Repository navigation
Test Suites
This is the list of what the tests cover, folder by folder. How to run them, the helpers and the rules are on Testing. On 2 October 2026 the Vitest suites held 934 tests in 96 files and the Rust code had 424 #[test] functions for cargo test; the numbers grow with every feature, so treat them as a rough size, not a target.
Files are <name>.test.ts next to the module they test. Folders are under src/lib/ unless shown otherwise.
| Folder | Test files | What they cover |
|---|---|---|
merge/ |
model, inline, extensions
|
line replacement and chunk actions, word highlights, the Cmd+Enter keymap |
editor/ |
lineDiff, conflictMarkers, blameModel, navigation, wheelZoom, languageName, findModel, textCommands, editorShortcuts, whitespace, activeLine, selectionInfo, featurePlan, indentGuides, ruler
|
change markers, conflict markers, blame mapping, next change, zoom, language names and grammars, the find bar's options and counter, Duplicate, Join Lines, Sort Lines and Go to Line, menu keys, Render whitespace, the current-line highlight, selection counts, which editor features apply where, indent guides, the margin line |
diff/ |
split, binaryPreview
|
the resizable split ratio and its limits, the side by side image and PDF preview: sides, shared zoom and scroll |
log/ |
graph, lineMatch
|
graph lanes and merges, finding the blamed line |
stores/ |
tabs, navHistory, workspacePaths, fontFamily, commitTabs, gitTabs, branchTabs, settingsData, openingProgress
|
preview tabs, Back and Forward, path helpers, font lists, pseudo tab paths, settings validation and migration, the opening progress text |
menu/ |
menuSpec, menuState
|
ids, accelerators and per-platform layout of the menu bar; enabled, checked and renamed items |
help/ |
shortcuts |
the Keyboard Shortcuts window lists every menu key plus the others |
terminal/ |
terminals, terminalTabs, runs, keys, fonts, options, theme, find, fileLinks, splitPanes, dropPaths
|
naming and the active terminal after a close, terminals in editor tabs, script runs, key handling, fonts, xterm options and the addon plan, terminal colors, find, clickable file paths, split groups and pane sizes, dropped paths |
scripts/ |
scriptsModel, scriptRun, nodeVersion
|
the Scripts tree, the run command, Node version ranges and LTS names |
search/ |
doubleShift, searchTabs, popupRows, fileSearchModel, symbolSearchModel, textSearchModel, replaceModel
|
double Shift, the popup tabs and rows, result models, Replace in Files |
markdown/ |
render, format, links, highlight, scrollSync, richSync, slug, viewMode
|
rendering, toolbar formatting, links and images, code highlight, scroll sync, rich editor write back, heading ids, view modes |
themes/ |
apply, appCss (catalog, themeIndex and color are in the UI library) |
every theme's tokens and WCAG contrast, color math, the theme list, applying a theme |
console/ |
consoleModel |
merging Git Console entries, the filter and the rows |
shelf/ |
shelfModel |
the Shelf list |
ignore/ |
gitignore |
escaped patterns for files and folders |
mcp/ |
toolDefs, toolStates, args, connect, menuCommands, perfModel
|
UI tool definitions, tool switches, argument checks, connect commands, menu tools, performance sampling |
debug/ |
memoryEvents |
naming the scroll areas for the memory log |
update/ |
releases, update
|
channels, the safe Markdown renderer, issue links, changelog parsing and semver |
views/ |
workspaceShortcuts, recentEntries
|
window shortcuts, Open Recent entries |
views/changes/ |
sections, drafts, fileStatus, repoMenu, repoPickers, sync, commitOptions
|
grouping and selection, drafts, row ids, the repository ... menu and pickers, Sync Changes, commit options |
views/files/ |
tones, reveal, locate, mediaPreview, previewSource, selection, fileOps, fileNames, dragDrop
|
status colors, revealing and locating a file, previews and their gmpreview URLs, multi-select, file operation menus and keys, names, drag and drop |
views/git/ |
branchPopup, gitOptions, integrateOptions, rebaseModel, github, lfs/lfsModel, submodules/submoduleModel, worktrees/worktreeModel
|
Branches popup, dialog options, Merge and Rebase options, the interactive rebase list, GitHub links, LFS, submodules, worktrees |
views/github/ |
githubModel |
GitHub dialogs and results |
scripts/ (repository root) |
versioning, wiki
|
version and changelog tools, the wiki checks |
Most modules test themselves in a #[cfg(test)] block; the bigger ones have a tests.rs beside them.
| Module | What the tests cover |
|---|---|
commands/tests.rs |
whole commands against real repositories: staging, commits, conflicts, mergetool, file operations and files_exist
|
commands/*.rs |
branch actions, commit options, history, ignore files, Merge and Rebase options, patches, interactive rebase (with merges), remotes, clone and cancel, shelf, stash, status, tags, config |
git/tests.rs and git/*.rs
|
readers and the CLI runner, the demo script, blame, cancel, files, LFS, submodules, worktrees |
merge/engine.rs |
the 3-way engine and its oracle test against git merge-file
|
watcher.rs |
attribution, ignored paths, linked git folders, index invalidation |
terminal.rs, run_process.rs
|
shells, PTYs, hang up and kill, script runs and the login environment |
scripts/, node_versions.rs
|
each script file format, the wanted Node version, installed versions |
file_search.rs, symbols/, text_search/
|
indexing, matching, caps, cancel, the symbol scanners, Replace in Files |
git_console.rs |
recording, masking secrets, limits, off means nothing |
shelf/ |
patch sections and the store |
github/tests.rs |
every GitHub path against a fake network, keychain and gh |
mcp/tests.rs and mcp/*.rs
|
the server over real HTTP, tokens, paths, the tool registry, install, the CLI client |
preview_scheme/tests.rs |
the gmpreview scheme: URL decoding, ranges, the folder check, work tree files and revisions of real repositories |
memory.rs, memory_log.rs, images.rs, media.rs, config.rs, state.rs, workspace_file.rs
|
the smaller modules |
When you add a test file, add it to this page in the same commit.
These pages are generated from docs/wiki. To correct something, open a pull request against the source file; edits made here are overwritten.
Using Nibtree
- Getting Started
- Welcome Screen
- Workspaces
- Files Panel
- File Operations
- File Icons
- Rounded Panels
- Editor and Tabs
- Pin Reorder and Wrap Tabs
- Single Tab Title
- Split Editor
- New File and Unsaved Changes
- Unload Hidden Tabs
- Editing Code
- Code Appearance
- Markdown Editor
- Image and PDF Preview
- Search Everywhere
- Recent Files
- Navigation Bar
- Find and Replace
- Changes and Commits
- Sign In Prompts
- Commit Box Layout
- Repository Actions
- Commit Options
- Ignoring Files
- Diffs
- Inline Diffs
- Staging View
- Revert a Change
- Resolving Conflicts
- Merge Tool
- Blame
- History and Log
- Merge Commits
- Branches and Tags
- Branches Popup
- Remotes
- Stashes
- Shelf
- Git Menu
- Git Dialogs
- Interactive Rebase
- Worktrees
- AI Agents
- AI Tasks
- AI Usage
- Keep Computer Awake
- Submodules
- Git LFS
- GitHub
- Git Console
- Terminal
- Terminal Features
- Scripts
- Navigation
- Menus
- Settings
- Settings Search
- Color Themes
- Settings Terminal and Automation
- Settings Files
- Updates
- Status Bar and Help
- Notifications
- Memory Use
- Clear Cache
- MCP and CLI
- Git Mergetool
- Keyboard Shortcuts
- Keyboard Shortcuts Editor
- Troubleshooting
- Troubleshooting Git
Developers
- Developer Guide
- Architecture
- Project Layout
- Backend
- How Folder Watching Works
- Folder Watching Bugs We Fixed
- How Workspace Files Work
- How the Preview Scheme Works
- Backend Services
- How Terminal Features Work
- Terminal Bugs We Fixed
- Frontend
- How the Rich Markdown Editor Works
- Rich Markdown Bugs We Fixed
- Git Menu Links
- Menu Keys and Routing
- Frontend Modules
- Blame Bugs We Fixed
- Project Color And Title Bar
- One Diff View
- Diff Bugs We Fixed
- Merge Tool Layouts
- Merge Tool Bugs We Fixed
- Color Theme Bugs We Fixed
- How the Connected Diff Works
- Rounded Panels Bugs We Fixed
- Update Bugs We Fixed
- Status Bar Bugs We Fixed
- MCP and CLI Bugs We Fixed
- Repository Actions Bugs We Fixed
- How the Changes Tab Works
- CodeMirror Patterns
- How the Cursor Works
- How Editor Features Work
- How the Path Bar Works
- Commands and Events
- Settings Reference
- Commands Workspace and Changes
- Commands Branches and Remotes
- Commands History and Extras
- Commands App and Tools
- Testing
- Test Suites
- Debugging
- Debugging with MCP
- Measuring Setting Memory
- How Terminal Memory Is Measured
- How Markdown Diagrams Work
- Releases and CI
- Publishing the Wiki
- Versioning and Changelog
- Browser Version Packages
- Browser Release Checks
- Docker Image
- Platforms and Signing
- Windows Support
- Windows Bugs We Fixed
- Windows MCP and CLI
- Docs and Screenshots
- UI Library
- UI Library MCP
- UI Library Bugs
- UI Library Migration
- Contributing
How features work
- Welcome screen
- Workspaces and folders
- Files panel
- File operations
- File icons
- Editor and tabs
- Pin, reorder and wrap tabs
- Single tab title
- Split editor
- New File and unsaved changes
- Unload hidden tabs
- Editing code
- Code appearance
- Markdown editor
- Image and PDF preview
- Search Everywhere
- Recent Files
- Navigation Bar
- Find and replace
- Changes and commits
- Sign-in prompts
- Commit box layout
- Repository actions
- Commit options
- Ignoring files
- Diffs
- Inline diffs
- Staging view
- Revert a change
- Resolving conflicts
- Merge tool
- Blame
- History and log
- Merge commits
- Commit tabs
- Branches and tags
- Branches popup
- Remotes
- Stashes
- Shelf
- Git menu
- Git dialogs
- Interactive rebase
- Worktrees
- AI agents
- AI usage
- Keep computer awake
- AI tasks
- Submodules
- Git LFS
- GitHub account
- Git Console
- Back and Forward
- Integrated terminal
- Scripts tool window
- Menu bar
- Settings
- Search in Settings
- Color themes
- Rounded panels
- Updates and release channels
- Status bar and help links
- Notifications
- Memory readout and memory log
- Clear Cache
- MCP server and command line tool
- git mergetool mode