Skip to main content
Module

x/denops_test/mod.ts>TestDefinition

🌿 Test helper module for denops.vim
Go to Latest
interface TestDefinition
implements Omit<Deno.TestDefinition, "fn">
import { type TestDefinition } from "https://deno.land/x/denops_test@v1.6.2/mod.ts";

Represents a test definition used in the test function.

Properties

fn: (denops: Denops, t: Deno.TestContext) => void | Promise<void>
mode: TestMode

Test runner mode.

  • Specifying "vim" or "nvim" will run the test with the specified runner.
  • If "any" is specified, Vim or Neovim is randomly selected and executed.
  • When "all" is specified, the test is run with both Vim and Neovim.
optional
pluginName: string

The plugin name of the test target.

optional
verbose: boolean

Prints Vim messages (echomsg).

optional
prelude: string[]

Vim commands to be executed before the start of Denops.

optional
postlude: string[]

Vim commands to be executed after the start of Denops.