bats icon indicating copy to clipboard operation
bats copied to clipboard

Add the ability to include other test files

Open jszwedko opened this issue 10 years ago • 5 comments

Adds an include directive that operates similar to load but allows you to include other bats test files rather than just bash scripts which allows for a simple way to DRY up similar tests.

See the added tests for a simple example of how this functionality might be used.

I can add documentation for this, but wanted to get feedback on the implementation first.

Thank you!

jszwedko avatar Aug 22 '15 21:08 jszwedko

Addresses #99

jszwedko avatar Aug 22 '15 21:08 jszwedko

Any feedback @sstephenson ?

jszwedko avatar Nov 21 '15 21:11 jszwedko

Any update here? This has sat around for 6 months, and is really useful...

rjernst avatar Apr 14 '16 23:04 rjernst

Any update here? This has sat around for 6 months, and is really useful...

I’m aware there are lots of issues that need attention, but Bats is a personal project and I don’t have any time for it right now. I am looking for a full-time maintainer. Maybe that’s you?

sstephenson avatar Apr 14 '16 23:04 sstephenson

I just found this PR. I have a similar PR here

nkakouros avatar Oct 04 '18 22:10 nkakouros