mig4 / setup-bats

GitHub Action to setup BATS testing framework
MIT License
27 stars 9 forks source link

Include bats-assert and bats-support #67

Open iainelder opened 3 years ago

iainelder commented 3 years ago

It would be great to have these bats libraries installed by this action to make it easier to write tests with rich assertions.

Currently I am running these bash commands in a subsequent step to install the libraries relative to my bats file, as shown in the installation documentation.

apt-get install --assume-yes wget unzip

wget https://github.com/bats-core/bats-assert/archive/master.zip -O assert.zip
unzip assert.zip
mv bats-assert-master/ bats-assert/

wget https://github.com/bats-core/bats-support/archive/master.zip -O support.zip
unzip support.zip
mv bats-support-master/ bats-support/
brokenpip3 commented 2 years ago

I made this action to setup all the bats libs: https://github.com/marketplace/actions/setup-bats-libs

iainelder commented 2 years ago

Thanks @brokenpip3 . Does it resolve this issue? I'm not sure what to do with the issue now.

I'm not in a position to test your new action. I don't know when I'll use bats again.

brokenpip3 commented 2 years ago

Should resolve the issue only if the setup-bats author does not have in mind to add the libs to this action. I think is not interested but I can't speak for him. @mig4 thoughts?

simar7 commented 2 years ago

ping @mig4?