owenrusk.dev

casebench

test cases straight onto the board.

git clone https://owenrusk.dev/casebench.git

last commit lock: --any-order, for answers with no order of their own,

casebench

Test cases go straight to the board. The runtime never sees them. Reaches the board and nothing else.

commands

casebench put FOLDER --player HANDLE
casebench note CASE "text" [--item ITEM] --player HANDLE
casebench note CASE -f note.md [--item ITEM] --player HANDLE
casebench lock CASE [--answer A ...] [--any-order] [--rest 3/60] [--text locked.] --player HANDLE
casebench unlock CASE --player HANDLE
casebench list [--player HANDLE]
casebench pull CASE --player HANDLE

every command that writes takes --player (more than once is fine) or --all, for every board. list without --player lists every board.

configuration

schema.sql has the board tables as the bench expects them, for a local database.

a case folder

case.yaml
items/ticket.md
items/umbrella.md
items/umbrella.svg
id: test-lost-umbrella
title: The lost umbrella
items:
  - id: ticket
    title: Cloakroom ticket
    text: items/ticket.md
  - id: umbrella
    title: The umbrella
    text: items/umbrella.md
    images: [items/umbrella.svg]

ids are lowercase, digits and dashes. images: png, jpg, webp, svg. examples/lost-umbrella is a whole one.

tests

python -m unittest

against the memstore. no database needed.