No description
Find a file
2025-12-21 08:44:25 -08:00
env/debian Use regex module instead of nre. 2025-12-21 08:14:45 -08:00
src Update the version number 0.1.3 2025-12-21 08:44:25 -08:00
stf-files Update version number to 0.1.2 2025-12-07 09:21:51 -08:00
tests Simplify the regexes api. 2025-12-21 08:42:24 -08:00
.gitignore First commit. 2025-11-08 09:00:17 -08:00
build Remove unused old command line parsing code. 2025-11-28 12:14:10 -08:00
readme.md Update stf files and readme. 2025-12-06 15:56:45 -08:00
runenv Report whether all unit tests passed or not. 2025-11-17 07:12:41 -08:00
stfrunner.nimble Simplify nimble file. 2025-12-07 09:34:30 -08:00

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