Lyricdev
GitHub

struct TestCase

pub struct TestCase

One test as lyric test hands it to run: its name — the module's path and the function's —, its body, why it is skipped, if it is, how many seconds it may take, and whether it runs beside the others that say so (@Test { skip = "…", timeout = 10, parallel = true }).

Fields

pub name: string
pub body: fn() -> void throws Error
pub skip: string = ""
pub timeout: int = 60
pub parallel: bool = false