Consts
ballsFailFast {.booldefine.} = true
- if true, quit early on a test failure Source Edit
Procs
proc commandLine(p: Profile; withHints = false): string {. ...raises: [ValueError, KeyError], tags: [ReadIOEffect, ReadEnvEffect], forbids: [].}
- compose the interesting parts of the compiler invocation Source Edit
proc main(directory: string; fallback = false) {....raises: [OSError, IOError, ValueError, ValueError, KeyError, IOError, OSError], tags: [ReadDirEffect, WriteIOEffect, ReadEnvEffect, ReadIOEffect, TimeEffect, ExecIOEffect, RootEffect, WriteDirEffect], forbids: [].}
- Run each test in the directory in a useful order; set fallback to true to fall back to a loose search in the current directory for testable code. Source Edit
proc matrixTable(matrix: Matrix): string {....raises: [KeyError, ValueError], tags: [], forbids: [].}
- Render the matrix as a table. Source Edit
proc ordered(directory: string; testsOnly = true): seq[string] {. ...raises: [OSError], tags: [ReadDirEffect], forbids: [].}
- Order a directory tree of test files usefully; set testsOnly for rigid "must start with a t and end with .nim" behavior. If testsOnly is set, the search is recursive. Source Edit
proc perform(matrix: var Matrix; profs: seq[Profile]) {. ...raises: [ValueError, KeyError, IOError, OSError], tags: [ReadEnvEffect, ReadIOEffect, WriteIOEffect, TimeEffect, ExecIOEffect, RootEffect], forbids: [].}
- Try to run profs and fail early if you can. Source Edit
proc perform(p: Profile): StatusKind {....raises: [IOError, ValueError, KeyError], tags: [ ExecIOEffect, ReadIOEffect, RootEffect, WriteIOEffect, ReadEnvEffect], forbids: [].}
- Run a single Profile p and return its StatusKind. Source Edit