sstephenson / bats

Bash Automated Testing System
MIT License
7.12k stars 518 forks source link

Unit tests with chroot? #189

Open chris-redekop opened 7 years ago

chris-redekop commented 7 years ago

I would like to run bats in a chroot environment to get a fs-side-effect-free unit test. Is this possible/recommended with bats?

mislav commented 7 years ago

I'm not sure, but you should try it out and report back with how it went! Keep in mind that bats requires a few system utilities in PATH to function, e.g. readline/greadline.