Skip to main content

Shell style tests using bats-core

Project description

https://github.com/LimaBD/batspp/releases/latest License: LGPLv3 Python: >=3.8 tests

BATSPP

Shell style tests using bats-core framework

Bats is a great TAP-compliant testing framework for Bash. It provides a simple way to verify that the UNIX programs you write behave as expected.

The goal of Batspp to allow writing shell style tests with an simple and a less idiosyncratic syntax.

#!/usr/bin/env batspp

# Test example with multiple assertions
$ filepath=$(echo $TMP/testfile-"$$")
$ echo -e "in this test\nwe are using\nmultiple assertions" | sudo tee $filepath
$ cat $filepath | wc -l
3
$ cat $filepath | wc -c
46

Batspp grew out of work for Thomas O'Hara on shell-scripts and mezcla.

Docs

License

Batspp is released under an GNU Lesser General Public License Version 3, see LICENSE.TXT for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

batspp-2.2.0-py3-none-any.whl (24.8 kB view details)

Uploaded Python 3

File details

Details for the file batspp-2.2.0-py3-none-any.whl.

File metadata

  • Download URL: batspp-2.2.0-py3-none-any.whl
  • Upload date:
  • Size: 24.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for batspp-2.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 af131980ec32a6529c45bb807623ec953a2aa956f0e3ec2b647fb4ad81f9a9cb
MD5 27928a66cbf0bfec90a4d5374918ff82
BLAKE2b-256 4ba1ef82f5a58a6fbe4ed90bc2fbfd3fc4fb534f3e0c78b4a24ad323053cb3c0

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page