Top AI Repos — open-source AI, indexed and scored
Top AI Repos tracks AI repositories on GitHub and answers two different questions about each one: is it moving right now, and would you bet a product on it.
Top AI Repos tracks AI repositories on GitHub and answers two different questions about each one: is it moving right now, and would you bet a product on it.
bash unit testing enterprise edition framework for professionals
| Date | Stars |
|---|---|
| 2026-07-24 | 635 |
| 2026-07-25 | 635 |
| 2026-07-28 | 635 |
| 2026-07-30 | 635 |
| 2026-08-06 | 635 |
Today
— stars today
This week
— stars this week
This month
— stars this month
Momentum
0.0
growth rate 0.00%/day
ifdef::backend-manpage[]
= BASH_UNIT(1)
== NAME
endif::[]
ifndef::backend-manpage[]
image::img/bu_50.png[bash_unit]
endif::[]
bash_unit - bash unit testing enterprise edition framework for professionals!
== Synopsis
*bash_unit* [-f tap] [-p <pattern>] [-s <pattern>] [-r] [test_file]
== Description
*bash_unit* allows you to write unit tests (functions starting with *test*),
run them and, in case of failure, displays the stack trace
with source file and line number indications to locate the problem.
Need a quick start? The
https://github.com/bash-unit/getting_started/[getting started project]
will help you get on track in no time.
The following functions are available in your tests (see below for detailed documentation):
* `fail [message]`
* `assert <assertion> [message]`
* `assert_fail <assertion> [message]`
* `assert_status_code <expected_status_code> <assertion> [message]`
* `assert_equals <expected> <actual> [message]`
* `assert_not_equals <unexpected> <actual> [message]`
* `assert_matches <expected-regex> <actual> [message]`
* `assert_not_matches <unexpected-regex> <actual> [message]`
* `assert_within_delta <expected num> <actual num> <max delta> [message]`
* `assert_no_diff <expected> <actual> [message]`
* `skip_if <condition> <pattern>`
* `fake <command> [replacement code]`
ifndef::backend-manpage[]
image::img/demo.gif[demo]
endif::[]
_(by the way, the documentation you are reading is itself tested with bash-unit)_
*bash_unit* is free software you may contribute to. See link:CONTRIBUTING.md[CONTRIBUTING.md].
== Options
*-p* _pattern_::
filters tests to run based on the given pattern.
You can specify several patterns by repeating this option
for each pattern.
*-s* _pattern_::
skip tests which name matches the given pattern.
You can specify several patterns by repeating this option
for each pattern.
Tests will appear in *bash_unit* output as _skipped_.
(see also _skip_if_)
*-r*::
executes test cases in random order.
Only affects the order within a test file (files are always
executed in the order in which they are specified on the
command line).
*-f* _output_format_::
specify an alternative output format.
The only supported value is *tap*.
*-q*::
quiet mode.
Will only output the status of each test with no further
information even in case of failure.
ifndef::backend-manpage[]
== How to install *bash_unit*
=== installing on Archlinux
*bash_unit* package is available on Archlinux through AUR. In order to install, issue the following command :
yaourt -Sys bash_unit
=== installing via link:https://nixos.org/[Nix/NixOS]
*bash_unit* package has been added to link:https://github.com/nixos/nixpkgs[nixpkgs]. You can use it with the following command:
nix-shell -p bash_unit
=== installing via link:https://brew.sh[Homebrew]
*bash_unit* is available by invoking brew:
brew install bash_unit
=== other installation
This will install *bash_unit* in your current working directory:
curl -s https://raw.githubusercontent.com/bash-unit/bash_unit/master/install.sh | bash
You can also download it from the https://github.com/bash-unit/bash_unit/releases[release page].
endif::[]
=== GitHub Actions
Here is an example of how you could integrate *bash_unit* with https://docs.github.com/fr/actions[GitHub Actions]:
```
name: bash_unit tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
ubuntu:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Unit testing with bash_unit
run: |
curl -s https://raw.githubusercontent.com/bash-unit/bash_unit/master/install.sh | bash
FORCE_COLOR=true ./bash_unit tests/test_*
```
See this bash_unit https://github.com/pgrange/bash_unit_getting_started[getting started github project] for a working example.
=== GitLab CI
Here is an example of how you could integrate *bash_unit* with https://docs.gitlab.com/ee/ci/[GitLab CI]:
```
test:
image: debiExcerpt of 29,172 characters
Read on GitHub240
14
8
5
5
5
4
4
João Miguel Neves · Yak Beard, Ltd. · United Kingdom
3
Wolfram Rösler · Germany
2
2
2
2
2
1
1
1
1
1
1
Would you bet a product on this? Bounded 0–100 and slow moving.
matched fp:1a007a5dbea21916, topic:testing