isa-replay

command
v0.0.0-...-3a4e46e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 16, 2024 License: AGPL-3.0 Imports: 17 Imported by: 0

Documentation

Overview

isa-replay

A small CLI to write unit tests in an easy DSL for testing servers compatible with the isabelle server protocol.

## replay file format

Replay files are small scripts that describe a sequential message exchange between a client and server.

They consist of two main units:

  • instructions: A client message that is being send to the server. An instruction is described as '-> {Message}', where {Message} is client message, like 'help'. These messages are validated by the client parser during startup and invalid messages will be rejected. An instruction may use previously captured content, see below, with string templates to allow for dynamic requests
  • assertions: A JSON expression describing an expected server behavoir, this consists of three steps: waiting for (with optional skipping) a message with a specific state, (optional) matching regexps against the response body or full response and (optional) capturing part of the output for the next instructions

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL