Skip to content

Testing: Phase 3 - Multi-root workspace and permalinks #98

@fegge

Description

@fegge

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.ts
  • test/unit/permalinks.test.ts
  • test/unit/navigation.test.ts

Total: 26 tests

Metadata

Metadata

Assignees

Labels

testingTest-related issues

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions