VBA-tools / vba-test

Add testing and TDD to VBA on Windows and Mac
MIT License
205 stars 46 forks source link

AfterEach #9

Closed rich-glow closed 7 years ago

rich-glow commented 9 years ago

It would be great if AfterEach functionality existed to be symmetrical with BeforeEach.

Is this on the roadmap?

timhall commented 9 years ago

I've definitely been thinking about it and have needed it for one of my projects, but it's been tricky to implement. The issue has been that there isn't really a way to know that a spec has finished in order to call AfterEach. I've played with calling it when the next spec is started, but couldn't find a way to call it the last time.

I'll look into it more and see what can be done.

rich-glow commented 9 years ago

awesome, thanks.