/baldrick-pest

Cunning regression tests for CLI applications

Primary LanguageTypeScriptMIT LicenseMIT

baldrick-pest

npm Build status npm bundle size

npm type definitions node-current NPM

Experimental

Cunning regression tests for CLI applications

Run some

Hero image for baldrick-pest

Highlights:

  • Test any kind of executable regardless of the programming language it has been created with.
  • Tests are written in YAML with a json schema.
  • Regression are checked by making snapshots.
  • Writing tests is quick and easy with auto-completion in vs-code
  • Reports the test results in mocha json. This makes it easy to integrate with other tools and services that use mocha json as a standard format for test results.

Example of baldrick-pest usage

Documentation and links

Related

  • baldrick-zest-engine Run tests declaratively with a few cunning plans
  • assert sh test-driven development for bash
  • bash_unit bash unit testing enterprise edition framework
  • shUnit2 unit test framework for Bourne based shell scripts

Installation

This package is ESM only.

yarn global add baldrick-pest
baldrick-pest --help

Or alternatively run it:

npx baldrick-pest --help

If you want to tun the latest version from github. Mostly useful for dev:

git clone git@github.com:flarebyte/baldrick-pest.git
yarn global add `pwd`