stfrunner

A single test file runner.

Pure Nim score 15/100 · tests present · no docs generated

Summary

Latest Version Unknown
License MIT
CI Status Failing
Downloads 0
Last Indexed 2026-07-21 05:27

Tags

Authors

  • Steve Flenniken

Installation

nimble install stfrunner
choosenim install stfrunner
git clone https://github.com/flenniken/stfrunner

OS Compatibility

Platform Linux macOS Windows FreeBSD OpenBSD NetBSD Android iOS WASM Embedded
stfrunner - - - - - - -

Dependencies

Package Version Optional
nim >= 2.2.4 No

Source

Repository https://github.com/flenniken/stfrunner
Homepage https://github.com/flenniken/stfrunner
Registry Source nimble_official

README

stfrunner

Stfrunner tests command line programs. It runs Single Test File (stf) files.

An stf file contains one test. It contains instructions for creating files, running files and comparing files and it is designed to look good in a markdown reader. For more detailed information see the stfrunner help message.

Stfrunner is a spinoff of the statictea project which contains many stf files you can learn from.

See the stfrunner stf-files folder for examples. Here are a few:

Build

Stfrunner is a standalone exe. You build it in a docker environment. You create the environment with the runenv command. You build stfrunner exe with the build command.

  • pull code
  • runenv build
  • runenv run
  • build build
  • build test

Pull Code

mkdir -p ~/code/stfrunner
cd ~/code/stfrunner
git clone git@github.com:flenniken/stfrunner.git .

Build Dev Environment

Build the docker development environment by running the runenv command:

./runenv b

Run Dev Environment

Run the docker development environment by running the runenv command:

./runenv r

Compile Nim

The first time you run the docker container you need to compile nim.

# inside docker container
cd ~/Nim
./build_all.sh

Build Stfrunner

# inside docker container
b b

Test Stfrunner

# inside docker container
b t

Run Stf Files

# inside docker container
b stf