bash_shell_mock VS bats-core

Compare bash_shell_mock vs bats-core and see what are their differences.

bash_shell_mock

A shell script mocking utility/framework for the BASH shell (by capitalone)
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
bash_shell_mock bats-core
1 23
61 4,652
- 1.5%
1.9 8.8
over 2 years ago 3 days ago
Shell Shell
Apache License 2.0 GNU General Public License v3.0 or later
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

bash_shell_mock

Posts with mentions or reviews of bash_shell_mock. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2020-12-28.
  • Getting Started with Bash Testing with Bats
    8 projects | dev.to | 28 Dec 2020
    I won't add mocking capabilities to our example project here, but I would like to give a short overview on how you can add Mocking to your Bats tests. For my git-auto-commit project I've used Shellmock for a period of time, to mock all calls to git. (In hindsight, that was a mistake. Full story can be read here).

bats-core

Posts with mentions or reviews of bats-core. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-10-05.

What are some alternatives?

When comparing bash_shell_mock and bats-core you can also consider the following projects:

shell-intune-samples - Sample shell scripts for Intune admins.

shunit2 - shUnit2 is a xUnit based unit test framework for Bourne based shell scripts.

git-auto-commit-action - Automatically commit and push changed files back to GitHub with this GitHub Action for the 80% use case.

getting-started-with-bash-testing - Example Bash Project to get started with testing with Bats.

bashunit - Test your bash scripts in the fastest and simplest way, discover the most modern bash testing framework.

bash-oo-framework - Bash Infinity is a modern standard library / framework / boilerplate for Bash

bats-assert - Common assertions for Bats

bach - Bach Testing Framework

shellharden - The corrective bash syntax highlighter

sh - A shell parser, formatter, and interpreter with bash support; includes shfmt