Skip to content

Achieve Satisfactory Code Coverage #18

@haberdashPI

Description

@haberdashPI

Goals:

  • Achieve at least 80% code coverage

Update I'm migrating to playwright, as the wdio-vscode-service is poorly maintained. This requires a substantial refactoring of my tests. Progress on new testing will resume once I've made this migration

Migration Steps:

  • migrate to new build/testing environment
  • Reimplement existing tests as either unit or integration tests, as appropriate:
    • captureKeys.ux.mts
    • commandState.ux.mts
    • config.ux.mts
    • configEdit.ux.mts
    • markdownDocs.ux.mts
    • palette.ux.mts
    • replay.ux.mts
    • searchMotions.ux.mts
    • simpleMotion.ux.mts
    • simpleMotionLayout.ux.mts
    • visualDocs.ux.mts

Prioritized

  • use of global state in commands
    • editorHasSelection
    • editorHasMultipleSelection
    • firstSelectionOrWord
  • onType fields of [[mode]]

Backlog

  • any missing parsing edge cases from "normal" tests (move them to UX tests): WARN: don't make these tests before we introduce the new parsing approach
  • commands
    • macros: recording and replaying edits
      • nested macros
      • multiple cursors
      • starting with insert mode
      • cross-document recording
  • empty search string
  • premature end of capture and search using enter
  • escaping a search

Completed

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions