-
Notifications
You must be signed in to change notification settings - Fork 26
Open
Description
Parent issue: #90
Overview
P1 priority tests for multi-root workspace management, permalink generation, and navigation.
Tests: Multi-Root Management (10 tests)
| Test | Type |
|---|---|
createUniqueLabels basename for single root |
+ |
createUniqueLabels disambiguates duplicates |
+ |
recurseUniqueLabels deeply nested duplicates |
+ |
getCorrespondingRootAndPath finds correct root |
+ |
getCorrespondingRootAndPath handles nested roots |
+ |
getCorrespondingRootAndPath caches results |
+ |
getCorrespondingRootAndPath file outside roots |
- |
getAllCorrespondingRootsAndPaths all matching |
+ |
isInThisWorkspaceRoot true case |
+ |
isInThisWorkspaceRoot false case |
- |
Tests: Permalinks (11 tests)
| Test | Type |
|---|---|
getRemoteAndPermalink GitHub URL |
+ |
getRemoteAndPermalink GitLab URL |
+ |
getRemoteAndPermalink Bitbucket URL |
+ |
getRemoteAndPermalink single line (#L10) |
+ |
getRemoteAndPermalink line range (#L10-L20) |
+ |
getRemoteAndPermalink strips .git suffix |
+ |
getRemoteAndPermalink handles SSH remote |
+ |
getRemoteAndPermalink empty for missing remote |
- |
getClientPermalink uses client remote |
+ |
copyEntryPermalinks configured separator |
+ |
copyEntryPermalinks multi-location |
+ |
Tests: Navigation (5 tests)
| Test | Type |
|---|---|
navigateToNextPartiallyAuditedRegion next |
+ |
navigateToNextPartiallyAuditedRegion wraps |
+ |
navigateToNextPartiallyAuditedRegion single |
+ |
navigateToNextPartiallyAuditedRegion none |
- |
navigateToNextPartiallyAuditedRegion multi-file |
+ |
Files
test/unit/multiRoot.test.tstest/unit/permalinks.test.tstest/unit/navigation.test.ts
Total: 26 tests
Metadata
Metadata
Assignees
Labels
testingTest-related issuesTest-related issues