batspp-2.2.0
توضیحات
Shell style tests using bats-core
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | batspp-2.2.0 |
| نام | batspp |
| نسخه کتابخانه | 2.2.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Bruno Daniel Lima |
| ایمیل نویسنده | bdl1998@hotmail.com |
| آدرس صفحه اصلی | https://github.com/LimaBD/batspp |
| آدرس اینترنتی | https://pypi.org/project/batspp/ |
| مجوز | GNU Lesser General Public License v3 (LGPLv3) |

[](https://github.com/LimaBD/batspp/blob/main/LICENSE.txt)
[](https://www.python.org/)

# BATSPP
Shell style tests using [bats-core framework](https://github.com/bats-core/bats-core)
Bats is a great [TAP](https://testanything.org/)-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.
``` bash
#!/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](https://github.com/tomasohara) on [shell-scripts](https://github.com/tomasohara/shell-scripts) and [mezcla](https://github.com/tomasohara/mezcla).
## Docs
- [Installation](./docs/installation.md)
- [Basic usage](./docs/basic_usage.md)
- [Writing tests](./docs/writing_tests.md)
- [Writing setups and teardowns](./docs/writing_setups_and_teardowns.md)
- [Tests examples](./docs/tests_examples.md)
- [Coverage reports](./docs/coverage_report.md)
- [Batspp internals](./docs/batspp_internals.md)
- [Contributing](./docs/contributing.md)
## License
Batspp is released under an GNU Lesser General Public License Version 3, see [LICENSE.TXT](./LICENSE.txt) for details.
نیازمندی
| مقدار | نام |
|---|---|
| ==1.3.0 | mezcla |
| ==1.12.0 | six |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.8 | Python |
نحوه نصب
نصب پکیج whl batspp-2.2.0:
pip install batspp-2.2.0.whl
نصب پکیج tar.gz batspp-2.2.0:
pip install batspp-2.2.0.tar.gz