Open lukechilds opened 6 years ago
This project is no longer being actively maintained by its original auther (see https://github.com/sstephenson/bats/issues/236).
You might want to migrate to the community maintained fork bats-core and report your issue there.
Great job on bats, it's really nice.
I was kind of confused on how to get my tests running everywhere.
It was kind of a pain.
Anyway, I just thew together this super simple script that pulls bats down into your
tests
directory, then runs your tests with it. Next time you run the script it won't pull bats down again if it's still there.tests/bats
should be added to.gitignore
so it's never included in the actual repo.That means I can just run
./test
everywhere; CI, locally and for end users. And it just works. Thought it might be worth sharing. Happy to submit a PR if you think it would be useful.Script is just:
And means anyone can just do:
This is the project I created it for if you're interested: https://github.com/lukechilds/chest