Skip to content

shypa/bunny

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bunny

bunny is a lightweight test framework to write and run tests in bash

Writing a test

A test in bunny is a shell function whose name starts with "test_". Its return code is used to determine whether the test passed or not:

  • 0 means "success";
  • 75 means the test was skipped;
  • any other integer means "error".

Running tests

bunny provides its own test discoverer/runner tool (ie. bunny). It may run either:

  • every test;
  • a set of test suites;
  • a set of tests (potentially from different test suites).

Tests are run in parallel.

Example

$ ./bunny test_harness.sh:test_fail
test_harness.sh:test_fail
--------------------------------------------------------------------------------
failure: This is a test

Passed in 0.008s


Ran 1 tests: 1 passed

About

lightweight test framework to write and run tests in bash

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages