Bashunit 0.36.0 – Branch coverage, NPM distribution, and faster reports

Bashunit 0.36.0 버전이 릴리스되었으며, NPM 배포 지원과 브랜치 커버리지 기능이 추가되어 코드 커버리지 리포트가 더욱 상세해졌습니다. 성능 개선으로 커버리지 리포트 생성 속도가 빨라졌고, 테스트 실패 시 출력 표시 기능도 향상되었습니다. 또한, 문서가 별도의 NPM 워크스페이스로 분리되어 관리 편의성이 증가했습니다.

https://github.com/TypedDevs/bashunit/releases/tag/0.36.0

#bashunit #codecoverage #npm #shelltesting #performance

I blogged about the #phpstan end-to-end test design/infrastructure, how it works and how I recently added #bashunit to the mix.

https://staabm.github.io/2024/06/28/readable-phpstan-end-to-end-tests-with-bashunit.html

Readable end-to-end tests for PHPStan with bashunit

For a long time in the PHPStan repository, we have isolated, highly-parallel end-to-end tests which are written in bash utilizing GitHub Actions. The design and initial implemenation - as far as I know - has been done by Ondřej Mirtes.

My developer experience

Created a small bash script which wraps #bashunit and allows us to test cli executables and use bashunit assertions.

This might be useful to create more readable end-to-end tests for #phpstan

Work in progress at https://github.com/phpstan/phpstan-src/pull/3160

Use bashunit for e2e tests by staabm · Pull Request #3160 · phpstan/phpstan-src

PHPStan's source code. This is where development happens. Check https://github.com/phpstan/phpstan for the distribution repository. - Use bashunit for e2e tests by staabm · Pull Request #3160 · phpstan/phpstan-src

GitHub
bashunit: A simple testing library for bash scripts
This is a neat toolset to do some unit tests against a bash script. I find it very helpful.
#bashunit
https://github.com/TypedDevs/bashunit
GitHub - TypedDevs/bashunit: A simple testing library for bash scripts.

A simple testing library for bash scripts. Contribute to TypedDevs/bashunit development by creating an account on GitHub.

GitHub