Tool for combining examples and test cases. Parses markdown files for test steps defined as code blocks and uses these to test command line applications.
Build binary and test examples:
make
./bin/mdtest examples/
Use conventional commits when committing your changes.
To lint the code, run golangci-lint run
. See its documentation for local installation instructions.
golangci-lint run
To test the code, run go test ./...
.
go test ./...
To build the application and execute the tests in examples/ directory, run:
make
./bin/mdtest examples/