-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cleanup function #3
Comments
@jasonkarns would you accept any contributions for this issue? (Btw. I noticed that you're a maintainer in the Bats github org- do you have any plans to move this repository to that org?) |
We are looking at pulling in a or some assertion libraries, and I would push for this one to be pulled into the org as well. Until that time, I'm hesitant to do much development on bats-mock as its architecture would need to change to work with whatever assertion library does get accepted into the org. |
That makes sense. I've also been holding off on assertions in the hope that they'll get pulled in to the org :) |
Btw. in case it helps anyone, I've created a helper function which should hopefully do some cleanup. Any comments or suggestions for improvement would be very welcome.
|
I would very much like to see such a function probably also (or instead) in a
-> Automatic verification of all stubs generated reducing boiler plate. Note the this won't work:
|
My current version:
|
presently,
stub
just appends to the stub-plan file(s). And typicalteardown
functions only cleanupTMP
, notBATS_TMPDIR
. It would be nice for stubs to have their own directory underBATS_TMPDIR
. Or alternatively keep a list of stubs created and expose a teardown function to remove them (which could then be invoked from userlandteardown
)The text was updated successfully, but these errors were encountered: